diff --git a/commands/crew.js b/commands/crew.js index d9c48c0..3727f3f 100644 --- a/commands/crew.js +++ b/commands/crew.js @@ -90,7 +90,7 @@ module.exports = (bot) => { } }, '', Strings.errorRetrievingCommit); }); - + bot.command('setbotname', spamwatchMiddleware, async (ctx) => { const Strings = getStrings(ctx.from.language_code); const botName = ctx.message.text.split(' ').slice(1).join(' '); @@ -117,4 +117,15 @@ module.exports = (bot) => { await ctx.telegram.leaveChat(ctx.chat.id); }, '', Strings.kickingMyselfErr); }); + + bot.command('getfile', spamwatchMiddleware, async (ctx) => { + const botFile = ctx.message.text.split(' ').slice(1).join(' '); + handleAdminCommand(ctx, async () => { + try{ + await ctx.replyWithDocument({source: botFile}); + }catch (error){ + console.log('ERROR'); + } + }); + }); };