Advertisement
Guest User

Untitled

a guest
Apr 17th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 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: "ExplosionTVBot",
  12. password: "Privat code xD"
  13. },
  14. channels: ["GamingExplosionTV"] // channels for bot to be in
  15. };
  16.  
  17. var client = new tmi.client(options); // Sets up the connection
  18.  
  19. client.connect(); //Connects to Twitch server
  20. client.on("chat", function (channel, userstate, message, self) {
  21. if (message === "!youtube") { // If user types !youtube
  22. client.say("GamingExplosionTV", "Her har du et link til min YouTube kanal ----------> https://www.youtube.com/channel/UC5crlg90mOT-AXR8PWPAZOg"); // trigger this command
  23. }
  24. });
  25. var client = new tmi.client(options); // Sets up the connection
  26.  
  27. client.connect();
  28. client.on("chat", function (channel, userstate, message, self) {
  29. if (message === "!facebook") { // If user types !facebook
  30. client.say("GamingExplosionTV", "Her har du et link til min Facebook side ----------> https://www.facebook.com/GamingExplosion/"); // trigger this command
  31. }
  32. });
  33.  
  34. var client = new tmi.client(options); // Sets up the connection
  35.  
  36. client.connect();
  37. client.on("chat", function (channel, userstate, message, self) {
  38. if (message === "!discord") { // If user types !discord
  39. client.say("GamingExplosionTV", "Her er der et link til min Discord ----------> https://discordapp.com/channels/208890814560993280/208890814560993280"); // trigger this command
  40. }
  41. });
  42.  
  43. var client = new tmi.client(options); // Sets up the connection
  44.  
  45. client.connect();
  46. client.on("chat", function (channel, userstate, message, self) {
  47. if (message === "!instagram") { // If user types !instagram
  48. client.say("GamingExplosionTV", "Her har du et link til min Instagram side ----------> https://www.instagram.com/gaming_explosion/"); // trigger this command
  49. }
  50. });
  51.  
  52. var client = new tmi.client(options); // Sets up the connection
  53.  
  54. client.connect();
  55. client.on("chat", function (channel, userstate, message, self) {
  56. if (message === "!store") { // If user types !store
  57. client.say("GamingExplosionTV", "Her kan du indløse points du har optjent ved at se streamen :D------------------> https://www.revlo.co/gamingexplosion090"); // trigger this command
  58. }
  59. });
  60.  
  61. var client = new tmi.client(options); // Sets up the connection
  62.  
  63. client.connect();
  64. client.on("chat", function (channel, userstate, message, self) {
  65. if (message === "!twitter") { // If user types !twitter
  66. client.say("GamingExplosionTV", "Her har du et link til min Twitter side ---------> https://twitter.com/MartinExplosion"); // trigger this command
  67. }
  68. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement