Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  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. identify: {
  12. username: "genstuk0v",
  13. password: "oauth:kas6ybsa4z7kga42jgvnxymginp59s"
  14. },
  15. channels: ["happinessltd"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('connected', function (address, port) {
  22. console.log("Address: " + address + " Port: " + port);
  23. });
  24. var phrases=[
  25. "Happinessltd, I love you! (No Homo) FeelsBadMan",
  26. "FailFish",
  27. "danWave",
  28. "baconNub",
  29. "sbzyFeedMe",
  30. "waffleHeart",
  31. "danPuke",
  32. "GivePLZ EVERYONE TAKE MY ENERGY! TakeNRG",
  33. "Kappa",
  34. "Happinessltd, I love you! (Full Homo) KappaPride"
  35. ];
  36. function sayPhrase() {
  37. client.say("happinessltd", phrases[Math.floor(Math.random()* phrases.length)]);
  38. }
  39. setTimeout(sayPhrase, 1500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement