Advertisement
Guest User

Untitled

a guest
Nov 5th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var tmi = require('tmi.js');
  2.  
  3. var options = {
  4.     options: {
  5.         debug: true
  6.     },
  7.     connection: {
  8.         cluster: "aws",
  9.         reconnect: true
  10.     },
  11.     identity: {
  12.         username: "szczurtv",
  13.         password: "oauth:41iir6a7r529smz26zl6jtp4yo9eqa"
  14.     },
  15.     channels: ["1kswodas"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('connected', function(address, port){
  22.     client.action("1kswodas", "Witam");
  23. });
  24.  
  25. client.on('chat', function(channel, user, message, self){
  26.     if(message === "!eldo")
  27.         client.action("1kswodas", "LUL");
  28. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement