Skip to content

Instantly share code, notes, and snippets.

@shindakun
Last active February 20, 2020 05:19
Show Gist options
  • Save shindakun/02bbf1ec0dc7e4562319276bc4e838fe to your computer and use it in GitHub Desktop.
Save shindakun/02bbf1ec0dc7e4562319276bc4e838fe to your computer and use it in GitHub Desktop.
client.on('chat', (channel, user, message, self) => {
switch(message) {
case '!twitter':
client.action('shinbot', `${user['display-name']} you can find it at twitter.com/shindakun`);
break;
case '!github':
client.action('shinbot', `${user['display-name']} you can find it at github.com/shindakun`);
break;
case '!timer':
setTimeout(function(){ client.action('shindakun', `${user['display-name']} 5 seconds has passed`); }, 5000);
break
default:
break;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment