diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/leveling/level.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/commands/leveling/level.ts b/src/commands/leveling/level.ts index be52a5d..48cf3ed 100644 --- a/src/commands/leveling/level.ts +++ b/src/commands/leveling/level.ts @@ -85,12 +85,9 @@ export default class LevelCommand extends BushCommand { gray = '#23272A', highlight = user.hexAccentColor ?? '#5865F2'; // Load roboto font - canvas.registerFont( - join(dirname(fileURLToPath(import.meta.url)), '..', '..', '..', '..', 'lib', 'assets', 'Roboto-Regular.ttf'), - { - family: 'Roboto' - } - ); + canvas.registerFont(join(dirname(fileURLToPath(import.meta.url)), '..', '..', '..', '..', 'assets', 'Roboto-Regular.ttf'), { + family: 'Roboto' + }); // Create image canvas const levelCard = canvas.createCanvas(800, 200), ctx = levelCard.getContext('2d'); |