diff --git a/bin/io-bot.js b/bin/io-bot.js index 91ca69437fff7d49fb004fd9dc693dc86a4dc26d..7723c56fbc36d9d9df140b45f3c98e4f62e77b90 100644 --- a/bin/io-bot.js +++ b/bin/io-bot.js @@ -51,6 +51,12 @@ const onMessage = function(m) { , from.name() , m.toStringDigest() ) + + if (/^(ding|ping|bing)$/i.test(m.get('content')) && !bot.self(m)) { + bot.reply(m, 'dong') + .then(() => { log.info('Bot', 'REPLY: dong') }) + } + } /** *