Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 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: "cdewbot",
  13. password: "oauth"
  14. },
  15. channels: ["tdey"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21.  
  22. //Detect when people join server and send message *NOT WORKING*
  23. //client.on('join', function(channel, username, self)) {
  24. // if(channel === "tdey" && username === "freeskinstrihard"){
  25. // client.say("Hello tdey :) ")
  26. // }
  27. //});
  28.  
  29. // Cooldown for commands
  30. //var go = cooldown(channel, 5000);{
  31.  
  32. //go('tdey', "!tdey")};
  33. //}
  34.  
  35. // Exact word commands
  36. client.on('chat', function(channel, user, message, self) {
  37. if(message.toLowerCase() === "!tdey") {
  38. client.action("tdey", "THE BEST MOD SeemsGood");}
  39. if(message.toLowerCase() === "wormpls") {
  40. client.action("cdewx", "wormpls");}
  41. if(message.toLowerCase() === "!bsx") {
  42. client.action("cdewx", "ur bad btw");}
  43. if(message.toLowerCase() === "!rebel") {
  44. client.action("cdewx", "r Kreygasm e Kreygasm b Kreygasm e Kreygasm l ");}
  45. if(message.toLowerCase() === "!crotiz") {
  46. client.action("cdewx", "http://imgur.com/a/VpT13");}
  47. if(message.toLowerCase() === "!cdew") {
  48. client.action("cdewx", "still 0-5 FeelsBadMan @" + user['display-name']);}
  49. if(message.toLowerCase() === "!qualify") {
  50. client.action("cdewx", "Cup #2 is on May 14th, Cup #3 is on June 10th, following cups TBA @" + user['display-name']);}
  51. if(message.toLowerCase() === "!90") {
  52. client.action("cdewx", "http://i.imgur.com/c14aIra.png @" + user['display-name']);}
  53. if(message.toLowerCase() === "!5guys") {
  54. client.action("cdewx", "https://clips.twitch.tv/DistinctBlindingElkBleedPurple gachiGASM");}
  55. if(message.toLowerCase() === "!inviable") {
  56. client.action("cdewx", "https://clips.twitch.tv/ElatedAlertBaboonAMPEnergyCherry");}
  57. });
  58. // Mod only
  59. // if(message === "!modonlycoms" && user.mod) {
  60. // client.action("cdewx", "hi");}
  61.  
  62. // Sub only *find sub com*
  63. // if(message === "!subonlycoms" && user.subscriber) {
  64. // client.action("cdewx", "hi")
  65. // }
  66. //});
  67. // If words are contained anywhere in the message
  68. client.on('chat', function(channel, user, text, self) {
  69. if(text.match ("fuck you")) {
  70. client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
  71. if(text.match ("positivity")) {
  72. client.action("cdewx", ":)");}
  73. if(text.match ("Fuck you")) {
  74. client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
  75. if(text.match ("you suck")) {
  76. client.action("cdewx", "You're probably 1400 LUL xD @" + user['display-name']);}
  77. if(text.match ("u suck")) {
  78. client.action("cdewx", "You're probably 1400 LUL xD @" + user['display-name']);}
  79. if(text.match ("fuck u")) {
  80. client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
  81. if(text.match ("Fuck u")) {
  82. client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
  83. if(text.match ("fuck me")) {
  84. client.action("cdewx", "ok KappaPride @" + user['display-name']);}
  85. });
  86.  
  87.  
  88.  
  89. // Timeout for banned words
  90. client.on('chat', function(channel, user, text, self) {
  91. if(text.match ("badword")) {
  92. client.say("cdewx", "/timeout " + user['display-name'] + " 600")
  93. client.say("cdewx", user.username + " cmonBruh ")};
  94. if(text.match ("badword")) {
  95. client.say("cdewx", "/timeout " + user['display-name'] + " 600")
  96. client.say("cdewx", user.username + " cmonBruh ")};
  97. if(text.match ("badword")) {
  98. client.say("cdewx", "/timeout " + user['display-name'] + " 600")
  99. client.say("cdewx", user.username + " cmonBruh ")};
  100. if(text.match ("badword")) {
  101. client.say("cdewx", "/timeout " + user['display-name'] + " 600")
  102. client.say("cdewx", user.username + " WutFace ")};
  103. if(text.match ("badword")) {
  104. client.say("cdewx", "/timeout " + user['display-name'] + " 600")
  105. client.say("cdewx", user.username + " dewTrig ")};
  106. if(text.match ("https://www.youtube.com/watch?v=IQbQtQu_uOI")) {
  107. client.say("cdewx", "/timeout " + user['display-name'] + " 600")
  108. if(text.match ("https://www.youtube.com/watch?v=UTfTd4yHAlg")) {
  109. client.say("cdewx", "/timeout " + user['display-name'] + " 600")
  110. if(text.match ("!vanish")) {
  111. client.say("cdewx", "/timeout " + user['display-name'] + " 1")};
  112.  
  113. };
  114.  
  115.  
  116. // Say when bot joins channel
  117. //client.on('connected', function(address, port) {
  118. // client.action("cdewx", "MrDestructoid checking in");
  119. //});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement