Markdown formatting + some fixes
This commit is contained in:
parent
1ec0af7cdb
commit
57154bcb70
8 changed files with 56 additions and 63 deletions
|
@ -6,19 +6,19 @@ module.exports = function(bot, msg) {
|
|||
|
||||
function getRandomInt(max) {
|
||||
return Math.floor(Math.random() * max);
|
||||
};
|
||||
}
|
||||
|
||||
const randomValue = getRandomInt(2);
|
||||
|
||||
if (randomValue === 0) {
|
||||
isFurry = `You (${userName}) are not a furry.`;
|
||||
isFurry = `*You (${userName}) are not a furry.*`;
|
||||
} else {
|
||||
isFurry = `Yes, you (${userName}) are a furry.`;
|
||||
};
|
||||
isFurry = `*Yes, you (${userName}) are a furry.*`;
|
||||
}
|
||||
|
||||
const message = `${isFurry}`;
|
||||
|
||||
bot.sendMessage(chatId, message)
|
||||
bot.sendMessage(chatId, message, { parse_mode: 'Markdown' })
|
||||
.catch(error => console.error('ERROR: Message cannot be sent:', error));
|
||||
console.log(`INFO: /furry executed by ${userName}, ${userId}`)
|
||||
}
|
||||
console.log(`INFO: /furry executed by ${userName}, ${userId}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue