Better error handling + more commands + code optimization
This commit is contained in:
parent
e4c8327117
commit
96f915838d
7 changed files with 240 additions and 280 deletions
|
@ -11,10 +11,10 @@
|
|||
"botAdminOnly": "This command is exclusive to the bot's general administrators. I can't disclose who they are, nor what this command does.",
|
||||
"privateOnly": "This command should be used only on private chats, and not on groups.",
|
||||
"groupOnly": "This command should be used only on groups, and not on private chats.",
|
||||
"botNameChanged": "*Bot name changed to* `{botName}`",
|
||||
"botNameErr": "*Error when changing bot name:*\n\n{tgErr}",
|
||||
"botDescChanged": "*Bot description changed to* `{botDesc}`",
|
||||
"botDescErr": "*Error when changing bot description:*\n\n{tgErr}",
|
||||
"botNameChanged": "*Bot name changed to* `{botName}.`",
|
||||
"botNameErr": "*Error when changing bot name:*\n{tgErr}",
|
||||
"botDescChanged": "*Bot description changed to* `{botDesc}.`",
|
||||
"botDescErr": "*Error when changing bot description:*\n{tgErr}",
|
||||
"invalidId": "Please enter a valid user ID.",
|
||||
"banSuccess": "User with ID `{userId}` has been banned.",
|
||||
"banErr": "Could not ban the user. Please check if the ID is correct and if the bot has admin permissions.\n\n{tgErr}",
|
||||
|
@ -22,9 +22,11 @@
|
|||
"unBanErr": "Could not unban the user. Please check if the ID is correct and if the bot has admin permissions.\n\n{tgErr}",
|
||||
"isGay": "Yes, you are *gay*!",
|
||||
"isNtGay": "Aahhh. You are not gay!",
|
||||
"isFurry": "Yes, you are a freaky *furry*!",
|
||||
"isFurry": "Yes, you are *furry*!",
|
||||
"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}`"
|
||||
"randomNum": "*Generated number (0-10):* `{number}.`",
|
||||
"userInfo": "*User info*\n\n*Name:* `{userName}`\n*Username:* `{userHandle}`\n*User ID:* `{userId}`\n*Language:* `{userLang}`\n*Premium user:* `{userPremium}`",
|
||||
"chatInfo": "*Chat info*\n\n*Name:* `{chatName}`\n*Chat ID:* `{chatId}`\n*Handle:* `{chatHandle}`\n*Type:* `{chatType}`\n*Members:* `{chatMembersCount}`\n*Is a forum:* `{isForum}`",
|
||||
"funEmojiResult": "*You rolled {emoji} and got *`{value}`*!*\nYou don't know what that means? Me too!",
|
||||
"gifErr": "*Something went wrong while sending the GIF. Please try again later.*\n\n{err}"
|
||||
}
|
|
@ -11,10 +11,10 @@
|
|||
"botAdminOnly": "Esse comando é exclusivo a administradores gerais do bot. Não posso informar quem são, e nem o que esse comando faz.",
|
||||
"privateOnly": "Esse comando deve ser utilizado apenas em chats privados, e não em grupos.",
|
||||
"groupOnly": "Esse comando deve ser utilizado apenas em grupos, e não em chats privados.",
|
||||
"botNameChanged": "*Nome do bot alterado para* `{botName}`",
|
||||
"botNameErr": "*Erro ao alterar o nome do bot:*\n\n`{tgErr}`",
|
||||
"botDescChanged": "*Descrição do bot alterada para* `{botDesc}`",
|
||||
"botDescErr": "*Erro ao alterar a descrição do bot:*\n\n`{tgErr}`",
|
||||
"botNameChanged": "*Nome do bot alterado para* `{botName}.`",
|
||||
"botNameErr": "*Erro ao alterar o nome do bot:*\n`{tgErr}`",
|
||||
"botDescChanged": "*Descrição do bot alterada para* `{botDesc}.`",
|
||||
"botDescErr": "*Erro ao alterar a descrição do bot:*\n`{tgErr}`",
|
||||
"invalidId": "Por favor, insira um ID de usuário válido.",
|
||||
"banSuccess": "Usuário com ID `{userId}` foi banido.",
|
||||
"banErr": "Não foi possível banir o usuário. Verifique se o ID está correto e se o bot tem permissões de administrador.\n\n`{tgErr}`",
|
||||
|
@ -22,9 +22,11 @@
|
|||
"unBanErr": "Não foi possível desbanir o usuário. Verifique se o ID está correto e se o bot tem permissões de administrador.\n\n`{tgErr}`",
|
||||
"isGay": "Sim, você é *gay*!",
|
||||
"isNtGay": "Aahhh. Você não é gay!",
|
||||
"isFurry": "Sim, você é um *furry* esquisito!",
|
||||
"isFurry": "Sim, você é *furry*!",
|
||||
"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}`"
|
||||
"randomNum": "*Número gerado (0-10):* `{number}.`",
|
||||
"userInfo": "*Informações do usuário*\n\n*Nome:* `{userName}`\n*Usuário:* `{userHandle}`\n*ID:* `{userId}`\n*Idioma:* `{userLang}`\n*Usuário Premium:* `{userPremium}`",
|
||||
"chatInfo": "*Informações do chat*\n\n*Nome:* `{chatName}`\n*ID do chat:* `{chatId}`\n*Identificador:* `{chatHandle}`\n*Tipo:* `{chatType}`\n*Membros:* `{chatMembersCount}`\n*É um fórum:* `{isForum}`",
|
||||
"funEmojiResult": "*Você lançou {emoji} e obteve *`{value}`*!*\nVocê não sabe o que isso significa? Nem eu!",
|
||||
"gifErr": "*Algo deu errado ao enviar o GIF. Tente novamente mais tarde.*\n\n{err}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue