mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
Added more commands to fun
This commit is contained in:
parent
1f5b17cbc5
commit
7245441c5f
@ -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) => {
|
module.exports = (bot) => {
|
||||||
|
bot.command('dice', (ctx) => {
|
||||||
|
rollDice(ctx);
|
||||||
|
});
|
||||||
|
|
||||||
|
bot.command('slot', (ctx) => {
|
||||||
|
spinSlot(ctx);
|
||||||
|
});
|
||||||
|
|
||||||
bot.command('furry', (ctx) => {
|
bot.command('furry', (ctx) => {
|
||||||
furryFunction(ctx);
|
furryFunction(ctx);
|
||||||
});
|
});
|
||||||
|
@ -15,5 +15,7 @@
|
|||||||
"isNtFurry": "Aahhh. You are not a furry!",
|
"isNtFurry": "Aahhh. You are not a furry!",
|
||||||
"randomNum": "*Generated number (0-10):* `{number}`",
|
"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}`",
|
"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..."
|
||||||
}
|
}
|
||||||
|
@ -15,5 +15,7 @@
|
|||||||
"isNtFurry": "Aahhh. Você não é um furry!",
|
"isNtFurry": "Aahhh. Você não é um furry!",
|
||||||
"randomNum": "*Número gerado (0-10):* `{number}`",
|
"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}`",
|
"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..."
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user