Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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