diff --git a/src/commands/gay.js b/src/commands/gay.js index 4b9a245..12a0192 100644 --- a/src/commands/gay.js +++ b/src/commands/gay.js @@ -1,24 +1,24 @@ -module.exports = function(bot, msg) { - const chatId = msg.chat.id; - const userName = msg.from.first_name; - const userId = msg.from.id; - let isGay = ""; - - function getRandomInt(max) { - return Math.floor(Math.random() * max); - } - - const randomValue = getRandomInt(2); - - if (randomValue === 0) { - isGay = `${userName} is not gay.`; - } else { - isGay = `${userName} is a gay.`; - } - - const message = `${isGay}`; - - bot.sendMessage(chatId, message) - .catch(error => console.error('ERROR: Message cannot be sent:', error)); - console.log(`INFO: /gay executed by ${userName}, ${userId}`) - } \ No newline at end of file +module.exports = function (bot, msg) { + const chatId = msg.chat.id; + const userName = msg.from.first_name; + const userId = msg.from.id; + let isGay = ""; + + function getRandomInt(max) { + return Math.floor(Math.random() * max); + } + + const randomValue = getRandomInt(2); + + if (randomValue === 0) { + isGay = `${userName} is not gay.`; + } else { + isGay = `${userName} is a gay.`; + } + + const message = `${isGay}`; + + bot.sendMessage(chatId, message) + .catch(error => console.error('ERROR: Message cannot be sent:', error)); + console.log(`INFO: /gay executed by ${userName}, ${userId}`) +} \ No newline at end of file