diff --git a/commands/edit-image-text/font.js b/commands/edit-image-text/font.js index 6834f702..8b7b7fbb 100644 --- a/commands/edit-image-text/font.js +++ b/commands/edit-image-text/font.js @@ -27,12 +27,12 @@ module.exports = class FontCommand extends Command { }); } - async run(msg, { font, text }) { - const image = await this.generateImage(font, text); + run(msg, { font, text }) { + const image = this.generateImage(font, text); return msg.say({ files: [{ attachment: image, name: `${font.filenameNoExt}.png` }] }); } - async generateImage(font, text) { + generateImage(font, text) { const canvasPre = createCanvas(1, 1); const ctxPre = canvasPre.getContext('2d'); ctxPre.font = this.client.fonts.get(font.filename).toCanvasString(50); diff --git a/commands/edit-image-text/jeopardy-question.js b/commands/edit-image-text/jeopardy-question.js index e355e1f7..d7c605a2 100644 --- a/commands/edit-image-text/jeopardy-question.js +++ b/commands/edit-image-text/jeopardy-question.js @@ -39,7 +39,7 @@ module.exports = class JeopardyQuestionCommand extends Command { }); } - async run(msg, { text }) { + run(msg, { text }) { const canvas = createCanvas(1280, 720); const ctx = canvas.getContext('2d'); ctx.fillStyle = '#030e78'; diff --git a/commands/games-sp/jeopardy.js b/commands/games-sp/jeopardy.js index 135e1005..ad266f95 100644 --- a/commands/games-sp/jeopardy.js +++ b/commands/games-sp/jeopardy.js @@ -40,7 +40,7 @@ module.exports = class JeopardyCommand extends Command { async run(msg) { const question = await this.fetchQuestion(); - const clueCard = await this.generateClueCard(question.question.replace(/<\/?i>/gi, '')); + const clueCard = this.generateClueCard(question.question.replace(/<\/?i>/gi, '')); const connection = msg.guild ? this.client.dispatchers.get(msg.guild.id) : null; let playing = false; if (msg.guild && connection && connection.canPlay) { @@ -70,7 +70,7 @@ module.exports = class JeopardyCommand extends Command { return body; } - async generateClueCard(question) { + generateClueCard(question) { const canvas = createCanvas(1280, 720); const ctx = canvas.getContext('2d'); ctx.fillStyle = '#030e78';