Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 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: "austrians_bot",
  12. password: "oauth:4jl6gplnr0a2469pb1en6hk19g2bd7"
  13. },
  14. channels: ["#austrianshope"]
  15. };
  16.  
  17. var client = new tmi.client(options);
  18.  
  19. // Connect the client to the server..
  20. client.connect();
  21.  
  22. client.on('chat', function (channel, userstate, message, self) {
  23. if(message === "!test") {
  24. client.action("#austrianshope", "this is a test message");
  25. }
  26. });
  27.  
  28. client.on('chat', function (channel, userstate, message, self) {
  29. if(message === "!psn") {
  30. client.action("#austrianshope", "πŸ“Œ Du willst mitspielen? Wenn du ein Follower bist und 100 Hopes gesammelt hast, kannst du mir gerne eine Freundschaftsanfrage schicken! Wichtig ist, dass du deinen Twitch Namen als Kurznachricht bei der Freundschaftsanfrage dazuschreibst! Mein Playstation Name: AustriansHope");
  31. }
  32. });
  33.  
  34. client.on('chat', function (channel, userstate, message, self) {
  35. if(message === "!hope") {
  36. client.action("#austrianshope", "πŸ“Œ Was sind Hopes? Hopes sind AktivitΓ€tspunkte! Alle 10 Minuten fΓΌrs Zuschauen bekommt man automatisch einen Hope! Jeder kann seine Hopes alle 30 Minuten unter !hopes im Chat abfragen! Ab einer gewissen Anzahl an Hopes kann man bei Verlosungen teilnehmen! Dies ist immer unterschiedlich, je nachdem was verlost wird!");
  37. }
  38. });
  39.  
  40. client.on('chat', function (channel, userstate, message, self) {
  41. if(message === "!fb") {
  42. client.action("#austrianshope", "πŸ“Œ Facebook: https://www.facebook.com/austrianshope");
  43. }
  44. });
  45.  
  46. client.on('chat', function (channel, userstate, message, self) {
  47. if(message === "!facebook") {
  48. client.action("#austrianshope", "πŸ“Œ Facebook: https://www.facebook.com/austrianshope");
  49. }
  50. });
  51.  
  52. client.on('chat', function (channel, userstate, message, self) {
  53. if(message === "!tw") {
  54. client.action("#austrianshope", "πŸ“Œ Twitter: https://twitter.com/AustriansHope");
  55. }
  56. });
  57.  
  58. client.on('chat', function (channel, userstate, message, self) {
  59. if(message === "!twitter") {
  60. client.action("#austrianshope", "πŸ“Œ Twitter: https://twitter.com/AustriansHope");
  61. }
  62. });
  63.  
  64. client.on('chat', function (channel, userstate, message, self) {
  65. if(message === "!yt") {
  66. client.action("#austrianshope", "πŸ“Œ Youtube: https://www.youtube.com/channel/UCgHrHwak1A_ky0tI4Gwabpw");
  67. }
  68. });
  69.  
  70. client.on('chat', function (channel, userstate, message) {
  71. if(message === "!youtube") {
  72. client.action("#austrianshope", "πŸ“Œ Youtube: https://www.youtube.com/channel/UCgHrHwak1A_ky0tI4Gwabpw");
  73. }
  74. });
  75.  
  76. client.on('chat', function (channel, userstate, message) {
  77. if(message === "!website") {
  78. client.action("#austrianshope", "πŸ“Œ Website: austrianshope.at");
  79. }
  80. });
  81.  
  82. client.on('chat', function (channel, userstate, message) {
  83. if(message === "!ts") {
  84. client.action("#austrianshope", "πŸ“Œ Teamspeak: austrianshope.at");
  85. }
  86. });
  87.  
  88. client.on('chat', function (channel, userstate, message) {
  89. if(message === "!teamspeak") {
  90. client.action("#austrianshope", "πŸ“Œ Teamspeak: austrianshope.at");
  91. }
  92. });
  93.  
  94. client.on('chat', function (channel, userstate, message) {
  95. if(message === "!setup") {
  96. client.action("#rnjesus_sixsax", "πŸ“Œ Equipment: http://austrianshope.at/setup.html");
  97. }
  98. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement