Simplified code by removing unecessary functions

This commit is contained in:
Lucas Gabriel 2024-07-26 00:47:44 -03:00
parent 5da48e0891
commit b354c9497a
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -41,30 +41,22 @@ function gayFunction(ctx) {
}
}
async function rollDice(ctx) {
ctx.telegram.sendDice(
ctx.chat.id, {
reply_to_message_id: ctx.message.message_id
}
);
}
async function spinSlot(ctx) {
ctx.telegram.sendDice(
ctx.chat.id, {
emoji: '🎰',
reply_to_message_id: ctx.message.message_id
}
);
}
module.exports = (bot) => {
bot.command('dice', (ctx) => {
rollDice(ctx);
bot.command('dice', async (ctx) => {
ctx.telegram.sendDice(
ctx.chat.id, {
reply_to_message_id: ctx.message.message_id
}
);
});
bot.command('slot', (ctx) => {
spinSlot(ctx);
bot.command('slot', async (ctx) => {
ctx.telegram.sendDice(
ctx.chat.id, {
emoji: '🎰',
reply_to_message_id: ctx.message.message_id
}
);
});
bot.command('furry', (ctx) => {