Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 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: "CoffeeBotAlpha",
  13. password: "oauth:929l3ycvb97i729obgy47bicjc0zqe"
  14. },
  15. channels: ["exoti_x"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('connected', function(address, port) {
  22. 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.");
  23. });
  24.  
  25. client.on('chat', function(channel, user, message, self) {
  26. if(message === "!twitter") {
  27. client.action("exoti_x", "twitter.com/blankktweets");
  28.  
  29. });
  30.  
  31. client.on('chat', function(channel, user, message, self) {
  32. if(message === "Hey") {
  33. client.action("exoti_x", "Hi there!");
  34. }
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement