Created
June 14, 2017 06:13
-
-
Save horie1024/3168855b27f2143920ec336d76fd4548 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) => { | |
const okashi = [ | |
'ちろるちょこ', | |
'ポテチ', | |
'スコーン', | |
'チョコあんぱん', | |
'コアラのマーチ', | |
'うまい棒', | |
'おせんべい' | |
]; | |
const person = [ | |
'kyuns', | |
'riho', | |
'shiozaki', | |
'joe', | |
'tmitsuno', | |
'tajima' | |
]; | |
robot.hear(/^お菓子$/, (msg) => { | |
msg.send('<@' + msg.random(person) + '>' + '\n' + msg.random(okashi)); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment