aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/leveling/level.ts3
-rw-r--r--src/commands/moderation/purge.ts3
2 files changed, 2 insertions, 4 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'
});
diff --git a/src/commands/moderation/purge.ts b/src/commands/moderation/purge.ts
index ace72f2..062dad0 100644
--- a/src/commands/moderation/purge.ts
+++ b/src/commands/moderation/purge.ts
@@ -1,5 +1,4 @@
-import Collection from '@discordjs/collection';
-import { Snowflake } from 'discord.js';
+import { Collection, Snowflake } from 'discord.js';
import { BushCommand, BushMessage } from '../../lib';
export default class PurgeCommand extends BushCommand {