aboutsummaryrefslogtreecommitdiff
path: root/src/commands/leveling
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-09 21:02:18 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-09 21:02:18 -0400
commit25752446d6166ff5733909160bae62cdd121339c (patch)
tree52b45189d7d3b63a8e58c783e0561bf376b4a41b /src/commands/leveling
parent51228472c7b724b23457a4d958f3bf66566492cc (diff)
downloadtanzanite-25752446d6166ff5733909160bae62cdd121339c.tar.gz
tanzanite-25752446d6166ff5733909160bae62cdd121339c.tar.bz2
tanzanite-25752446d6166ff5733909160bae62cdd121339c.zip
a whole lot of nothing
Diffstat (limited to 'src/commands/leveling')
-rw-r--r--src/commands/leveling/level.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/leveling/level.ts b/src/commands/leveling/level.ts
index 33ad705..b219954 100644
--- a/src/commands/leveling/level.ts
+++ b/src/commands/leveling/level.ts
@@ -51,7 +51,6 @@ export default class LevelCommand extends BushCommand {
}
private async getImage(user: BushUser, guild: BushGuild): Promise<Buffer> {
- // I added comments because this code is impossible to read
const guildRows = await Level.findAll({ where: { guild: guild.id } });
const rank = guildRows.sort((a, b) => b.xp - a.xp);
const userLevelRow = guildRows.find((a) => a.user === user.id);
@@ -64,7 +63,7 @@ export default class LevelCommand extends BushCommand {
const white = '#FFFFFF',
gray = '#23272A',
highlight = user.hexAccentColor ?? '#5865F2';
- // Load roboto font because yes
+ // Load roboto font
canvas.registerFont(join(__dirname, '..', '..', '..', '..', 'lib', 'assets', 'Roboto-Regular.ttf'), {
family: 'Roboto'
});