Skip to content

Instantly share code, notes, and snippets.

@w3cj
Created October 21, 2019 16:06
Show Gist options
  • Save w3cj/2bfc7d2030a6fcb5c9e87f5ba1c0893c to your computer and use it in GitHub Desktop.
Save w3cj/2bfc7d2030a6fcb5c9e87f5ba1c0893c to your computer and use it in GitHub Desktop.
const client = new tmi.Client({
options: {
debug: true, // verbose message logging -> will show when connected, all messages, errors, etc.
},
connection: {
reconnect: true,
secure: true,
},
channels: ['funfunfunction'],
});
client.connect();
// message includes raids and hosts as well as user messages
client.on('message', async (channel, userstate, message) => {
// do stuff here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment