Put string import on right place

This commit is contained in:
Lucas Gabriel 2024-10-03 22:24:45 -03:00
parent db640e3bfa
commit 46295fe1b9
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -3,8 +3,8 @@ 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 Strings = getStrings(ctx.from.language_code);
const userInput = ctx.message.text.split(' ').slice(1).join(' ').replace(/\s+/g, '');
let request = "";