From ac11b53619b565e945945c478e7f6153de82f287 Mon Sep 17 00:00:00 2001 From: lucmsilva651 Date: Mon, 29 Jul 2024 13:37:49 -0300 Subject: [PATCH] Fixed replaces on setbotname and setbotdesc --- commands/crew.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/crew.js b/commands/crew.js index 27aa6c2..502ec24 100644 --- a/commands/crew.js +++ b/commands/crew.js @@ -63,7 +63,7 @@ module.exports = (bot) => { const userId = ctx.from.id || Strings.unKnown; if (Config.admins.includes(userId)) { const botName = ctx.message.text.split(' ').slice(1).join(' '); - const botNameReport = Strings.botNameChanged.replace({botName}, botName); + const botNameReport = Strings.botNameChanged.replace('{botName}', botName); ctx.telegram.setMyName(botName).catch(error => ctx.reply( "Error when changing bot name:\n" + error, { reply_to_message_id: ctx.message.message_id @@ -87,7 +87,7 @@ module.exports = (bot) => { const userId = ctx.from.id || Strings.unKnown; if (Config.admins.includes(userId)) { const botDesc = ctx.message.text.split(' ').slice(1).join(' '); - const botDescReport = Strings.botDescChanged.replace({botDesc}, botDesc); + const botDescReport = Strings.botDescChanged.replace('{botDesc}', botDesc); ctx.telegram.setMyDescription(botDesc).catch(error => ctx.reply( "Error when changing bot description:\n" + error, { reply_to_message_id: ctx.message.message_id