Markdown formatting + some fixes

This commit is contained in:
Lucas Gabriel 2024-06-02 00:26:48 +00:00
parent 1ec0af7cdb
commit 57154bcb70
8 changed files with 56 additions and 63 deletions

View file

@ -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}`);
}