From e8a55bd9edf535d30171c2f1c7c3cc11b4f7595c Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 6 Jan 2022 12:29:33 -0500 Subject: remove top level lib folder --- src/commands/leveling/level.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/commands/leveling') 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'); -- cgit