From 7245441c5f3a9ec189d4eabfe837a586a41acf4a Mon Sep 17 00:00:00 2001 From: lucmsilva651 Date: Fri, 26 Jul 2024 00:43:30 -0300 Subject: [PATCH] Added more commands to fun --- commands/fun.js | 30 ++++++++++++++++++++++++++++++ locales/english.json | 4 +++- locales/portuguese.json | 4 +++- 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/commands/fun.js b/commands/fun.js index 7591391..2fe726d 100644 --- a/commands/fun.js +++ b/commands/fun.js @@ -41,7 +41,37 @@ function gayFunction(ctx) { } } +async function rollDice(ctx) { + const Strings = getStrings(ctx.from.language_code); + await ctx.reply( + Strings.rollingDice, { + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id + } + ); + ctx.telegram.sendDice(ctx.chat.id); +} + +async function spinSlot(ctx) { + const Strings = getStrings(ctx.from.language_code); + await ctx.reply( + Strings.spinningSlot, { + parse_mode: 'Markdown', + reply_to_message_id: ctx.message.message_id + } + ); + ctx.telegram.sendDice(ctx.chat.id, { emoji: '🎰' }); +} + module.exports = (bot) => { + bot.command('dice', (ctx) => { + rollDice(ctx); + }); + + bot.command('slot', (ctx) => { + spinSlot(ctx); + }); + bot.command('furry', (ctx) => { furryFunction(ctx); }); diff --git a/locales/english.json b/locales/english.json index 6a623a1..ad806cc 100644 --- a/locales/english.json +++ b/locales/english.json @@ -15,5 +15,7 @@ "isNtFurry": "Aahhh. You are not a furry!", "randomNum": "*Generated number (0-10):* `{number}`", "userInfo": "*User info*\n\n*Your name is:* `{userName}`\n*Your username is:* `{userHandle}`\n*Your ID is:* `{userId}`\n*You are a bot:* `{isBot}`\n*Your language:* `{userLang}`\n*You are a Premium user:* `{userPremium}`", - "chatInfo": "*Group info*\n\n*Chat name:* `{chatName}`\n*Chat ID:* `{chatId}`\n*Chat handle:* `{chatHandle}`\n*Chat type:* `{chatType}`\n*Chat members count:* `{chatMembersCount}`\n*Is a forum:* `{isForum}`" + "chatInfo": "*Group info*\n\n*Chat name:* `{chatName}`\n*Chat ID:* `{chatId}`\n*Chat handle:* `{chatHandle}`\n*Chat type:* `{chatType}`\n*Chat members count:* `{chatMembersCount}`\n*Is a forum:* `{isForum}`", + "rollingDice": "Rolling a dice...", + "spinningSlot": "Here goes the slot spin..." } diff --git a/locales/portuguese.json b/locales/portuguese.json index 1d93cfb..8594de7 100644 --- a/locales/portuguese.json +++ b/locales/portuguese.json @@ -15,5 +15,7 @@ "isNtFurry": "Aahhh. Você não é um furry!", "randomNum": "*Número gerado (0-10):* `{number}`", "userInfo": "*Informações do usuário*\n\n*Seu nome é:* `{userName}`\n*Seu usuário é:* `{userHandle}`\n*Seu ID é:* `{userId}`\n*Você é um bot:* `{isBot}`\n*Seu idioma:* `{userLang}`\n*Você é um usuário premium:* `{userPremium}`", - "chatInfo": "*Informações do chat*\n\n*Nome do chat:* `{chatName}`\n*ID do chat:* `{chatId}`\n*Identificador:* `{chatHandle}`\n*Tipo de chat:* `{chatType}`\n*Número de membros:* `{chatMembersCount}`\n*É um fórum:* `{isForum}`" + "chatInfo": "*Informações do chat*\n\n*Nome do chat:* `{chatName}`\n*ID do chat:* `{chatId}`\n*Identificador:* `{chatHandle}`\n*Tipo de chat:* `{chatType}`\n*Número de membros:* `{chatMembersCount}`\n*É um fórum:* `{isForum}`", + "rollingDice": "Rolando um dado...", + "spinningSlot": "Vamos girar os rolos..." } \ No newline at end of file