Simplified code by removing unecessary functions
This commit is contained in:
parent
5da48e0891
commit
b354c9497a
1 changed files with 13 additions and 21 deletions
|
@ -41,30 +41,22 @@ function gayFunction(ctx) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function rollDice(ctx) {
|
module.exports = (bot) => {
|
||||||
|
bot.command('dice', async (ctx) => {
|
||||||
ctx.telegram.sendDice(
|
ctx.telegram.sendDice(
|
||||||
ctx.chat.id, {
|
ctx.chat.id, {
|
||||||
reply_to_message_id: ctx.message.message_id
|
reply_to_message_id: ctx.message.message_id
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
});
|
||||||
|
|
||||||
async function spinSlot(ctx) {
|
bot.command('slot', async (ctx) => {
|
||||||
ctx.telegram.sendDice(
|
ctx.telegram.sendDice(
|
||||||
ctx.chat.id, {
|
ctx.chat.id, {
|
||||||
emoji: '🎰',
|
emoji: '🎰',
|
||||||
reply_to_message_id: ctx.message.message_id
|
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) => {
|
bot.command('furry', (ctx) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue