Skip to content

Instantly share code, notes, and snippets.

@LukeFinch
Created October 15, 2019 20:06
Show Gist options
  • Save LukeFinch/010e39cba032bbdcd8d865c35d3658df to your computer and use it in GitHub Desktop.
Save LukeFinch/010e39cba032bbdcd8d865c35d3658df to your computer and use it in GitHub Desktop.
const arrayOfDads = ['lcfinch','kinotheproducer','iplayforcharity']
client.on('message', (channel, userstate, message, self) => {
if (self) return
if (
arrayOfDads.indexOf(userstate.username) > -1){
client.say(channel, 'Hey Dad')
arrayOfDads.splice(arrayOfDads.indexOf(userstate.username))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment