Advertisement
Guest User

Untitled

a guest
May 25th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. const tmi = require('tmi.js');
  2. // Define configuration options
  3. const opts = {
  4. identity: {
  5. username: 'NICK WASZEGO BOTA ZOSTAW PRZECINEK I CUDZYSŁOWY',
  6. password: 'WASZ TOKEN AUTORYZACJI ZOSTAW TE JEBANE CUDZYSŁOWY'
  7. },
  8. channels: [
  9. 'NAZWA KANAŁU NA KTÓRYM BOT MA DZIAŁAĆ'
  10. ]
  11. };
  12. // Create a client with our options
  13. const client = new tmi.client(opts);
  14. // Register our event handlers (defined below)
  15. client.on('connected', onConnectedHandler);
  16. // Connect to Twitch:
  17. client.connect();
  18. function onConnectedHandler(addr, port) {
  19.  
  20.  
  21. client.action('NAZWA KANAŁU NA KTÓRYM BOT MA DZIAŁAĆ', `WIADOMOŚĆ NA CZACIE ${Math.floor(Math.random() * 10)}`);
  22.  
  23.  
  24. console.log(`* Connected to ${addr}:${port}`);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement