Advertisement
Guest User

Untitled

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