diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | responses.js | 10 | ||||
| -rw-r--r-- | settings.sqlite3 | bin | 8192 -> 0 bytes |
3 files changed, 7 insertions, 4 deletions
@@ -57,4 +57,3 @@ typings/ # dotenv environment variables file .env -.sqlite3 diff --git a/responses.js b/responses.js index 9945861..b0a9941 100644 --- a/responses.js +++ b/responses.js @@ -108,12 +108,16 @@ module.exports.showUser = async (msg, args) => { continue; } let matches = (await api.searchMatches(ign)).data; - let matchstr = "not available"; - if (matches.length > 0) matchstr = formatMatch(matches[0]); + let matchstr = "not available", + skill_tier = -1; + if (matches.length > 0) { + matchstr = formatMatch(matches[0]); + skill_tier = matches[0].skill_tier; + } let embed = vainsocialEmbed(`${ign} - ${player.shard_id}`, "player/" + ign) .setThumbnail("https://vainsocial.com/images/game/skill_tiers/" + - player.skill_tier + ".png") + skill_tier + ".png") .setDescription("") .addField("Profile", formatPlayer(player), true) .addField("Last match", matchstr + ` diff --git a/settings.sqlite3 b/settings.sqlite3 Binary files differdeleted file mode 100644 index 15ce44e..0000000 --- a/settings.sqlite3 +++ /dev/null |
