Advertisement
Guest User

Untitled

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