Advertisement
SchnitzelCptDan

Untitled

Jan 16th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 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: "schnitzelcaptaindan",
  13. password: "oauth:8qklcb5lvrkzq8g36rxx40s1bgazjf"
  14. },
  15. channels: ["spooner96", "cuda87"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. if (channel ='#spooner96') {
  22. setTimeout(function() {
  23. client.on('subscription', function(channel, username, method) {
  24. client.say(channel, "spoonerLovebomb");
  25. client.say(channel, "spoonerSub spoonerC");
  26. client.say(channel, "Thanks for subscribing " + username + "!");
  27. client.say(channel, "spoonerSub spoonerC");
  28. client.say(channel, "spoonerLovebomb");
  29. }, 5000);
  30. } );
  31. setTimeout(function() {
  32. client.on('resub', function(channel, username, months, message) {
  33. client.say(channel, "spoonerLovebomb");
  34. client.say(channel, "spoonerSub spoonerC");
  35. client.say(channel, "Thanks for re-subscribing " + username + "!");
  36. client.say(channel, "spoonerSub spoonerC");
  37. client.say(channel, "spoonerLovebomb");
  38. }, 5000);
  39. } );
  40. }
  41. else if(channel ='#cuda87') {
  42. client.on('subscription', function(channel, username, method) {
  43. client.say(channel, "cudaH");
  44. client.say(channel, "cudaGasm cudaHype");
  45. client.say(channel, "cudaW Thanks for subscribing " + username + "! cudaW");
  46. client.say(channel, "cudaGasm cudaHype");
  47. client.say(channel, "cudaH");
  48. } );
  49. client.on('resub', function(channel, username, months, message) {
  50. client.say(channel, "cudaH");
  51. client.say(channel, "cudaGasm cudaHype");
  52. client.say(channel, "cudaW Thanks for re-subscribing " + username + "! cudaW");
  53. client.say(channel, "cudaGasm cudaHype");
  54. client.say(channel, "cudaH");
  55. } );
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement