diff --git a/scripts/famiscript.js b/scripts/famiscript.js index d539633..8df0c67 100644 --- a/scripts/famiscript.js +++ b/scripts/famiscript.js @@ -76,16 +76,16 @@ function getUser(msg, bot, userInputUser) { module.exports = (robot) => { // badger badger badger - robot.hear(/badger/i, (msg) => { - const rand = Math.round(Math.random() * 600000); - const totalBadgers = robot.brain.get('totalBadgers') + 1; - robot.brain.set('totalBadgers', totalBadgers); - setTimeout(() => { - msg.send(msg.random(badger)); - }, rand); - const user = msg.message.user; - robot.logger.info(`${user.name} was heard saying ${msg.message.text} for the ${totalBadgers} time`); - }); + // robot.hear(/badger/i, (msg) => { + // const rand = Math.round(Math.random() * 600000); + // const totalBadgers = robot.brain.get('totalBadgers') + 1; + // robot.brain.set('totalBadgers', totalBadgers); + // setTimeout(() => { + // msg.send(msg.random(badger)); + // }, rand); + // const user = msg.message.user; + // robot.logger.info(`${user.name} was heard saying ${msg.message.text} for the ${totalBadgers} time`); + // }); robot.hear(/how many badgers\?/i, (msg) => { const totalBadgers = robot.brain.get('totalBadgers'); @@ -95,14 +95,14 @@ module.exports = (robot) => { }); // agree with awesome - robot.hear(/^(.*) (is|are|seems) awesome/i, (msg) => { - const rand = Math.round((Math.random() * 60000) + 60000); - const user = msg.message.user; - setTimeout(() => { - msg.send(`${msg.random(consideration)}I think that ${msg.match[1]} ${msg.match[2]} awesome too`); - }, rand); - robot.logger.info(`${user.name} was heard saying ${msg.message.text}`); - }); + // robot.hear(/^(.*) (is|are|seems) awesome/i, (msg) => { + // const rand = Math.round((Math.random() * 60000) + 60000); + // const user = msg.message.user; + // setTimeout(() => { + // msg.send(`${msg.random(consideration)}I think that ${msg.match[1]} ${msg.match[2]} awesome too`); + // }, rand); + // robot.logger.info(`${user.name} was heard saying ${msg.message.text}`); + // }); robot.hear(/^catbomb (\d+)$/i, (msg) => { const user = msg.message.user; @@ -178,9 +178,9 @@ module.exports = (robot) => { }); // point out topic changes - robot.topic((msg) => { - msg.send(`${msg.message.text}? TOPIC CHANGE! I'm telling!`); - }); + // robot.topic((msg) => { + // msg.send(`${msg.message.text}? TOPIC CHANGE! I'm telling!`); + // }); // redis robot.hear(/^redis server info$/i, (msg) => {