Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 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:r17au63s8034vhas4stfskkt2puecs"
  14. },
  15. channels: ["d0p3t"]
  16. };
  17.  
  18. var client = new tmi.client(options);
  19. client.connect();
  20.  
  21. client.on('connected', function(address, port) {
  22. client.action("d0p3t", "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("d0p3t", "No twitter yet.");
  28. }
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement