69 lines
1.5 KiB
JavaScript
Raw Normal View History

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-24 22:39:27 -03:00
function furryFunction(ctx) {
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) {
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('dice', async (ctx) => {
ctx.telegram.sendDice(
ctx.chat.id, {
reply_to_message_id: ctx.message.message_id
}
);
2024-07-26 00:43:30 -03:00
});
bot.command('slot', async (ctx) => {
ctx.telegram.sendDice(
ctx.chat.id, {
emoji: '🎰',
reply_to_message_id: ctx.message.message_id
}
);
2024-07-26 00:43:30 -03:00
});
2024-07-24 22:39:27 -03:00
bot.command('furry', (ctx) => {
furryFunction(ctx);
});
bot.command('gay', (ctx) => {
gayFunction(ctx);
});
};