Advertisement
Guest User

FrostBot

a guest
May 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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. identity: {
  12. username: "PumpkinSpiceLatteh",
  13. password: "oauth:xwtypmr36lanhgkxaxt5z093o4vlx3"
  14. },
  15. channels: ["frost_"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('subscription', function(channel, username, method) {
  22. if (channel == '#frost_') {
  23. client.say(channel, "PogChamp PogChamp")
  24. client.say(channel, "frstHYPE frstHYPE frstHYPE");
  25. client.say(channel, "frstLOVE frstLOVE Thanks for subscribing @" + username + "! frstLOVE frstLOVE");
  26. client.say(channel, "frstHYPE frstHYPE frstHYPE");
  27. client.say(channel, "PogChamp PogChamp");
  28. client.say(channel, "@" + username + " Refresh and share! frstLOVE")
  29. }
  30. } );
  31.  
  32. client.on('resub', function(channel, username, months, message) {
  33. if (channel == '#frost_') {
  34. client.say(channel, "frstLOVE frstLOVE frstLOVE");
  35. client.say(channel, "frstHYPE frstHYPE frstHYPE");
  36. client.say(channel, "frstRP frstRP Thanks for re-subscribing @" + username + "! frstRP frstRP");
  37. client.say(channel, "frstHYPE frstHYPE frstHYPE");
  38. client.say(channel, "frstLOVE frstLOVE frstLOVE")
  39. }
  40. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement