Monospace in some commands
This commit is contained in:
parent
614eed0102
commit
38c585af36
3 changed files with 7 additions and 7 deletions
|
@ -14,14 +14,14 @@ module.exports = function(bot, msg) {
|
|||
}
|
||||
|
||||
if (chatHandle) {
|
||||
chatHandleOutput = `*Chat handle:* @${chatHandle}`;
|
||||
chatHandleOutput = `*Chat handle:* \`@${chatHandle}`;
|
||||
} else {
|
||||
chatHandleOutput = `*Chat handle:* none (private group)`;
|
||||
chatHandleOutput = `*Chat handle:* \`none (private group)\``;
|
||||
}
|
||||
|
||||
// if chatName returns undefined, the chat is not a group or channel
|
||||
if (chatName) {
|
||||
chatNameOutput = `*Chat name:* ${chatName}\n${chatHandleOutput}\n*Chat ID:* ${chatId}\n\n${isForumOutput}`;
|
||||
chatNameOutput = `*Chat name:* \`${chatName}\`\n${chatHandleOutput}\n*Chat ID:* \`${chatId}\`\n\n${isForumOutput}`;
|
||||
} else {
|
||||
chatNameOutput = "Whoops!\nThis command doesn't work in PM.";
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ module.exports = function(bot, msg) {
|
|||
|
||||
const randomValue = getRandomInt(11);
|
||||
|
||||
const message = `*Generated value:* ${randomValue}`;
|
||||
const message = `*Generated value:* \`${randomValue}\``;
|
||||
|
||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||
|
|
|
@ -16,12 +16,12 @@ module.exports = function(bot, msg) {
|
|||
}
|
||||
|
||||
if (userHandle) {
|
||||
haveUsername = `*Your username is:* @${userHandle}`;
|
||||
haveUsername = `*Your username is:* \`@${userHandle}\``;
|
||||
} else {
|
||||
haveUsername = "*Your username is:* none";
|
||||
haveUsername = `*Your username is:* \`none\``;
|
||||
}
|
||||
|
||||
const message = `*Your name is:* ${userName}\n${haveUsername}\n*Your ID is:* ${userId}\n*You are a bot:* ${isBot}\n*Your language:* ${userLang}\n\n${userPremiumOutput}`;
|
||||
const message = `*Your name is:* \`${userName}\`\n${haveUsername}\n*Your ID is:* \`${userId}\`\n*You are a bot:* \`${isBot}\`\n*Your language:* \`${userLang}\`\n\n${userPremiumOutput}`;
|
||||
|
||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||
.catch(error => console.error('WARN: Message cannot be sent: ', error));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue