Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let tmi = require('tmi.js');
- let options = {
- identity: {
- username: `Username`,
- password: `OAuth Token`
- }
- }
- let Client = new tmi.client(options);
- Client.connect();
- function loop() {
- setTimeout(loop, 5000);
- Client.color('#' + ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'][Math.floor(Math.random()*16)] + ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'][Math.floor(Math.random()*16)] + ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'][Math.floor(Math.random()*16)] + ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'][Math.floor(Math.random()*16)] + ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'][Math.floor(Math.random()*16)] + ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'][Math.floor(Math.random()*16)]);
- }
- Client.on('connected', () => {
- loop();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement