2024-07-24 22:39:27 -03:00
|
|
|
const resources = require('../props/resources.json');
|
2024-07-25 23:40:22 -03:00
|
|
|
const { getStrings } = require('./checklang');
|
2024-07-24 22:39:27 -03:00
|
|
|
|
|
|
|
function furryFunction(ctx) {
|
2024-07-25 23:40:22 -03:00
|
|
|
const Strings = getStrings(ctx.from.language_code);
|
2024-07-24 22:39:27 -03:00
|
|
|
if (Math.random() < 0.5 ? "yes" : "no" === "yes") {
|
|
|
|
ctx.replyWithAnimation(
|
|
|
|
resources.furryGif, {
|
|
|
|
caption: Strings.isFurry,
|
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
|
|
|
}
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
ctx.reply(
|
|
|
|
Strings.isNtFurry, {
|
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
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function gayFunction(ctx) {
|
2024-07-25 23:40:22 -03:00
|
|
|
const Strings = getStrings(ctx.from.language_code);
|
2024-07-24 22:39:27 -03:00
|
|
|
if (Math.random() < 0.5 ? "yes" : "no" === "yes") {
|
|
|
|
ctx.replyWithAnimation(
|
|
|
|
resources.gayFlag, {
|
|
|
|
caption: Strings.isGay,
|
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
|
|
|
}
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
ctx.reply(
|
|
|
|
Strings.isNtGay, {
|
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
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = (bot) => {
|
|
|
|
bot.command('furry', (ctx) => {
|
|
|
|
furryFunction(ctx);
|
|
|
|
});
|
|
|
|
|
|
|
|
bot.command('gay', (ctx) => {
|
|
|
|
gayFunction(ctx);
|
|
|
|
});
|
|
|
|
};
|