Advertisement
Guest User

Untitled

a guest
Apr 10th, 2017
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 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: "Schmoopiie",
  12. password: "oauth:a29b68aede41e25179a66c5978b21437"
  13. },
  14. channels: ["#dexuuh", "#summit1g"]
  15. };
  16.  
  17. var client = new tmi.client(options);
  18.  
  19. // Connect the client to the server..
  20. client.connect();
  21.  
  22. client.on("subscription", function (channel, username, method) {
  23. client.say(channel, "Thank you " + username + " for subscribing");
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement