2024-07-24 22:39:27 -03:00
|
|
|
const resources = require('../props/resources.json');
|
2024-07-25 23:57:38 -03:00
|
|
|
const { getStrings } = require('../plugins/checklang.js');
|
2024-07-28 13:31:04 -03:00
|
|
|
const { isOnSpamWatch } = require('../plugins/lib-spamwatch/spamwatch.js');
|
|
|
|
const spamwatchMiddleware = require('../plugins/lib-spamwatch/Middleware.js')(isOnSpamWatch);
|
2024-07-24 22:39:27 -03:00
|
|
|
|
|
|
|
module.exports = (bot) => {
|
2024-07-28 13:31:04 -03:00
|
|
|
bot.start(spamwatchMiddleware, async (ctx) => {
|
2024-07-25 23:40:22 -03:00
|
|
|
const Strings = getStrings(ctx.from.language_code);
|
2024-07-24 22:39:27 -03:00
|
|
|
ctx.replyWithPhoto(
|
2024-07-26 00:06:04 -03:00
|
|
|
resources.lunaCat, {
|
2024-07-24 22:39:27 -03:00
|
|
|
caption: Strings.lynxWelcome,
|
2024-07-25 03:55:05 +00:00
|
|
|
parse_mode: 'Markdown',
|
|
|
|
reply_to_message_id: ctx.message.message_id
|
2024-07-24 22:39:27 -03:00
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
2024-08-31 21:23:30 -03:00
|
|
|
|
|
|
|
bot.help(spamwatchMiddleware, async (ctx) => {
|
|
|
|
const Strings = getStrings(ctx.from.language_code);
|
|
|
|
ctx.replyWithPhoto(
|
|
|
|
resources.lunaCat2, {
|
|
|
|
caption: Strings.lynxHelp,
|
|
|
|
parse_mode: 'Markdown',
|
|
|
|
reply_to_message_id: ctx.message.message_id
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
bot.command('privacy', spamwatchMiddleware, async (ctx) => {
|
|
|
|
const Strings = getStrings(ctx.from.language_code);
|
|
|
|
ctx.reply(
|
|
|
|
Strings.lynxPrivacy, {
|
|
|
|
parse_mode: 'Markdown',
|
|
|
|
disable_web_page_preview: true,
|
|
|
|
reply_to_message_id: ctx.message.message_id
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
2024-07-24 22:39:27 -03:00
|
|
|
};
|