Advertisement
Guest User

Untitled

a guest
Nov 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 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: "lodipwetmalu123",
  12. password: "oauth:qwlr8xv7la2b2qzb80r8rzn3l1eel7"
  13. },
  14. channels: ["mnlcandelaria13", "mnlcandelaria15"]
  15. };
  16.  
  17. var client = new tmi.client(options);
  18. client.connect();
  19.  
  20. client.on("connected", function (address, port) {
  21. options.channels.forEach(function(channel) {
  22. client.action(channel, 'Hi baby?');
  23. });
  24. });
  25.  
  26. client.on('chat', function(channel, user, message, self) {
  27. if(message === 'facebook?') {
  28. client.action('mnlcandelaria13', 'facebook.com/manly.candelaria');
  29. }
  30. client.action('mnlcandelaria13', user['display-name'] + ', Let\'s have a date?');
  31. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement