Last active
August 29, 2015 14:15
-
-
Save hiroqn/1a46ec41337dc148287b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (robot) -> | |
prevMessage = {} | |
robot.hear /(.*)/, (msg) -> | |
room = msg.message.room | |
prev = prevMessage[room] | |
prevMessage[room] = msg.match[1] | |
if msg.match[1] is 'まだ' | |
return msg.send 'ここにない' | |
if prev is 'まだ' and msg.match[1] is '出会い' | |
msg.send ':recruit:' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment