Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. var tmi = require('tmi.js')
  2.  
  3. var options = {
  4. options: {
  5. debug: true
  6. },
  7. connection: {
  8. reconnect: true
  9. },
  10. identity: {
  11. username: "CoffeeBotAlpha",
  12. password: "CENSORED"
  13. },
  14. channels: ["#exoti_x","#Serpent_AI","#TezManGaming"]
  15. };
  16.  
  17. var client = new tmi.client(options);
  18. client.connect();
  19.  
  20. client.on('connected', function(address, port, channel) {
  21. client.action("exoti_x", "Hello i am CoffeeBot i am currently in alpha, i love coffee and i like interacting with people, so welcome to the stream and hello.");
  22. });
  23.  
  24. client.on('chat', function(channel, user, message, self) {
  25. if(message === "!creatortwitter") {
  26. client.action(channel, "twitter.com/blankktweets");
  27. }
  28. if(message === "Hey") {
  29. client.action(channel, "Hi there!");
  30. }
  31. if(message === "Gimme a cookie") {
  32. client.action(channel, "Maybe :)");
  33. }
  34. if(message === "Give me a cookie") {
  35. client.action(channel, "Maybe :)");
  36. }
  37. if(message === "!cookie") {
  38. client.action(channel, "Maybe :)");
  39. }
  40. if(message === "!creatoryoutube") {
  41. client.action(channel, "Its private...");
  42. }
  43. if(message === "!plannedupdates") {
  44. client.action(channel, "1.0.1-snapshota01 Add more commands.");
  45. }
  46. if(message === "!exotixisdope") {
  47. client.action(channel, "He is dope!");
  48. }
  49. if(message === "!tezman") {
  50. client.action(channel, "He is pretty nice.");
  51. }
  52. if(message === "!rekt") {
  53. client.action(channel, "Get rekt! " + user['display-name']);
  54. }
  55. if(message === "!hype") {
  56. client.action(channel, "Hype for " + user['display-name'] + " twitchRaid"); }
  57. });
  58.  
  59. client.on("join", function (channel, username, self) {
  60. client.action(channel, "Hey there! " + user['display-name'] + " twitchRaid")
  61. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement