Put missing import on cat.js (am I dumb or what?)

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

View File

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