mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-04-28 17:15:57 +00:00
Simplified code by removing unecessary functions
This commit is contained in:
parent
5da48e0891
commit
b354c9497a
@ -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) => {
|
module.exports = (bot) => {
|
||||||
bot.command('dice', (ctx) => {
|
bot.command('dice', async (ctx) => {
|
||||||
rollDice(ctx);
|
ctx.telegram.sendDice(
|
||||||
|
ctx.chat.id, {
|
||||||
|
reply_to_message_id: ctx.message.message_id
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.command('slot', (ctx) => {
|
bot.command('slot', async (ctx) => {
|
||||||
spinSlot(ctx);
|
ctx.telegram.sendDice(
|
||||||
|
ctx.chat.id, {
|
||||||
|
emoji: '🎰',
|
||||||
|
reply_to_message_id: ctx.message.message_id
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.command('furry', (ctx) => {
|
bot.command('furry', (ctx) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user