Help disabled to further maintenance

This commit is contained in:
Lucas Gabriel 2025-01-19 00:58:52 -03:00 committed by GitHub
parent 52f3f643c1
commit 4a645cc85b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,10 +29,14 @@ async function sendHelpMessage(ctx, isEditing) {
} }
module.exports = (bot) => { module.exports = (bot) => {
bot.help(spamwatchMiddleware, async (ctx) => { // bot.help(spamwatchMiddleware, async (ctx) => {
await sendHelpMessage(ctx); // await sendHelpMessage(ctx);
}); // });
bot.help(spamwatchMiddleware, async (ctx) => {
ctx.reply("\`\`[DISABLED BY MAINTENANCE, SORRY ABOUT THAT]\`\`")
})
bot.command("about", spamwatchMiddleware, async (ctx) => { bot.command("about", spamwatchMiddleware, async (ctx) => {
const Strings = getStrings(ctx.from.language_code); const Strings = getStrings(ctx.from.language_code);
const aboutMsg = Strings.botAbout.replace("{sourceLink}", `${process.env.botSource}`); const aboutMsg = Strings.botAbout.replace("{sourceLink}", `${process.env.botSource}`);
@ -99,4 +103,4 @@ module.exports = (bot) => {
break; break;
} }
}); });
} }