SHARE
TWEET

Untitled

a guest May 25th, 2019 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top