Guest User

Untitled

a guest
Aug 14th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //requires twitch api
  2. const tmi = require("tmi.js");
  3.  
  4. //config options to connect to channel
  5. const config = {
  6. options: {
  7. debug: true
  8. },
  9. connection: {
  10. reconnect: true
  11. },
  12. identity: {
  13. username: 'your username here',
  14. password: 'your auth token here'
  15. },
  16. channels: ['your channel name here']
  17. };
  18.  
  19.  
  20. const client = new tmi.client(config);
Add Comment
Please, Sign In to add comment