diff --git a/commands/cat.js b/commands/cat.js index 29450f7..9553abe 100644 --- a/commands/cat.js +++ b/commands/cat.js @@ -1,7 +1,9 @@ +const { getStrings } = require('../plugins/checklang.js'); const { isOnSpamWatch } = require('../plugins/lib-spamwatch/spamwatch.js'); const spamwatchMiddleware = require('../plugins/lib-spamwatch/Middleware.js')(isOnSpamWatch); module.exports = (bot) => { + const Strings = getStrings(ctx.from.language_code); bot.command("cat", spamwatchMiddleware, async (ctx) => { const userInput = ctx.message.text.split(' ').slice(1).join(' ').replace(/\s+/g, ''); let request = "";