Advertisement
Profesar

Untitled

Nov 26th, 2021
27
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Chat, ChatEvents } from "twitch-js";
  2. import Credentials from './Credentials/Credentials.js';
  3. import * as commands from './commands/commands.js';
  4.  
  5.  
  6. const username = Credentials.username;
  7. const token = Credentials.helix_token;
  8. const channels = ["brian6932", 'pajlada', 'drapsnatt'];
  9.  
  10. const run = async () => {
  11. const chat = new Chat({
  12. username,
  13. token
  14. });
  15.  
  16. await chat.connect();
  17. channels.forEach(channel => chat.join(channel));
  18.  
  19. ...
Advertisement
RAW Paste Data Copied
Advertisement