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) {
|
||||
module.exports = (bot) => {
|
||||
bot.command('dice', async (ctx) => {
|
||||
ctx.telegram.sendDice(
|
||||
ctx.chat.id, {
|
||||
reply_to_message_id: ctx.message.message_id
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
async function spinSlot(ctx) {
|
||||
bot.command('slot', async (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('slot', (ctx) => {
|
||||
spinSlot(ctx);
|
||||
});
|
||||
|
||||
bot.command('furry', (ctx) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user