Advertisement
Guest User

Untitled

a guest
Nov 6th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 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: "koriibot",
  13. password: ""
  14. },
  15. channels: ["koriio_o"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('chat', function(channel, user, message, self) {
  22. if(message === "re") {
  23. client.say("koriio_o", "re! " + user['display-name'])
  24. }
  25. if(message === "!eteindre") {
  26. client.say("koriio_o", "arrêt en cours.")
  27. client.disconnect();
  28. }
  29. if(message === "!koko") {
  30. client.say("koriio_o", "kokoooooo! <3")
  31. }
  32. if(message === "!amis") {
  33. client.say("koriio_o", "Si tu as du temps libre, tu peux aussi aller voir le live de:")
  34. client.say("koriio_o", "RitnTV, Mac_Aaron, alabama296, nicoredafr, xlepetitprince et biensur de kokodokidoki!")
  35. }
  36. });
  37.  
  38. client.on('connected', function(adress, port) {
  39. console.log("Adress: " + adress + " Port: " + port);
  40. client.say("koriio_o", "/color Blue")
  41. client.say("koriio_o", "Je suis maintenant en service!")
  42. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement