Advertisement
Guest User

Untitled

a guest
Nov 5th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. var tmi = require('tmi.js')
  2.  
  3. var option = {
  4. option: {
  5. debug:true
  6. },
  7. connection: {
  8. cluster: "aws",
  9. reconnect: true
  10. },
  11. identity: {
  12. username: "belierbot",
  13. password: "oauth:0a59ed5nmg2utqn4jpo678f8fj7256"
  14. },
  15. channels: ["Belier_TV"]
  16. };
  17.  
  18. var client = new tmi.client(option);
  19. client.connect();
  20.  
  21. client.on("chat", function(channel, user, message, self) {
  22. if(message === "ca va BelierBot" || message === "รงa va BelierBot ?" || message === "Ca va BelierBot ?") {
  23. client.action("Belier_TV", "Je ne suis pas Moobot omg !");
  24. }
  25. })
  26.  
  27. client.on("chat", function(channel, user, message, self) {
  28. if(message === "Qui est le meilleur Modo ?") {
  29. if (user.mod) {
  30. client.action("Belier_TV", "C'est toi" + user + "Tu le sais bien <3");
  31. }
  32. else {
  33. client.action("Belier_TV", "Au hasard, Freezeex")
  34. }
  35. }
  36. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement