mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Put string import on right place
This commit is contained in:
parent
db640e3bfa
commit
46295fe1b9
@ -3,8 +3,8 @@ 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 Strings = getStrings(ctx.from.language_code);
|
||||||
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 = "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user