Advertisement
Guest User

Untitled

a guest
Mar 11th, 2017
144
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: ["Gizmulek"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('connected', function(address, port){
  22.     client.action("Gizmulek", "Witam, daje okejke");
  23. });
  24.  
  25. client.on('chat', function(channel, user, message, self){
  26.     if(message === "!eldo")
  27.         client.action(channel, "LUL");
  28.     if(message === "!ork")
  29.         client.action(channel, "SMOrc");
  30.     if(message === "bot")
  31.         client.action(channel, "KappaPride");
  32.     setInterval(function(){
  33.         client.action(channel, "Sadol kazał mi spamować", 30000)
  34.     });
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement