From 80a0dbd2d346851ed2042f2fc1b079edd8a63bd8 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 30 Sep 2024 10:05:45 +0530 Subject: [PATCH] Fix crash on failing to send gif --- commands/index.js | 2 +- commands/roleplay.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/index.js b/commands/index.js index 6116c65..f65ffb7 100644 --- a/commands/index.js +++ b/commands/index.js @@ -21,7 +21,7 @@ module.exports = (bot, [ questions, kys, insults, commands_list, words, roleplay .then(bot_user => { const default_text = (command, text) => `Do you want to ${text} ` - + `yourself?\nIf no, reply to someone with /${command} to kill` + + `yourself?\nIf no, reply to someone with /${command} to ${command}` + ` them or run /${command} username/name.\nYou can suggest ` + `more /${command} replies using /feedback`; diff --git a/commands/roleplay.js b/commands/roleplay.js index 8dbbb44..32285a3 100644 --- a/commands/roleplay.js +++ b/commands/roleplay.js @@ -38,7 +38,7 @@ module.exports = (forms, getGif) => (ctx) => { reply = forms.none .replace("{}", user); - getGif() + return getGif() .then(gif => ctx.replyWithAnimation(gif.data.url, {caption: reply})); };