Skip to content

Instantly share code, notes, and snippets.

@horie1024
Created June 14, 2017 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save horie1024/3168855b27f2143920ec336d76fd4548 to your computer and use it in GitHub Desktop.
Save horie1024/3168855b27f2143920ec336d76fd4548 to your computer and use it in GitHub Desktop.
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