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