Advertisement
Guest User

Untitled

a guest
Apr 10th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. const tmi = require('tmi.js');
  2.  
  3. const options = {
  4. options: {
  5. debug: true,
  6. },
  7. connection: {
  8. cluster: 'aws',
  9. reconnect: true,
  10. },
  11. identity: {
  12. username: 'Butexx',
  13. password: 'TUTAJ WRZUCASZ KOD Z https://twitchapps.com/tmi/',
  14. },
  15. channels: ['demonzz1'],
  16. };
  17.  
  18. const client = new tmi.client(options);
  19.  
  20. client.connect();
  21.  
  22. client.on('chat', (channel, user, message, self) => {
  23. if(message === 'The arena is now open! Type !ffa to join!' && user["display-name"] === 'demonzzbot') {
  24. setTimeout(() => {
  25. client.say('Butexx', '!ffa');
  26. }, 2300);
  27. }
  28. });
  29.  
  30. client.on('chat', (channel, user, message, self) => {
  31. if(message === 'The arena has been cleaned up... Want to go again?! Type !boss to start!' && user["display-name"] === 'demonzzbot') {
  32. setTimeout(() => {
  33. client.action('Butexx', '!boss');
  34. }, 2300);
  35. }
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement