Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const tmi = require('tmi.js');
- const options = {
- options: {
- debug: true,
- },
- connection: {
- cluster: 'aws',
- reconnect: true,
- },
- identity: {
- username: 'Butexx',
- password: 'TUTAJ WRZUCASZ KOD Z https://twitchapps.com/tmi/',
- },
- channels: ['demonzz1'],
- };
- const client = new tmi.client(options);
- client.connect();
- client.on('chat', (channel, user, message, self) => {
- if(message === 'The arena is now open! Type !ffa to join!' && user["display-name"] === 'demonzzbot') {
- setTimeout(() => {
- client.say('Butexx', '!ffa');
- }, 2300);
- }
- });
- client.on('chat', (channel, user, message, self) => {
- if(message === 'The arena has been cleaned up... Want to go again?! Type !boss to start!' && user["display-name"] === 'demonzzbot') {
- setTimeout(() => {
- client.action('Butexx', '!boss');
- }, 2300);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement