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}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue