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: 'no',
- password: 'no',
- },
- channels: ['no'],
- };
- const client = new tmi.client(options);
- client.connect();
- client.on('connected', (address, port) => {
- client.action('no', 'Hello, Planets_Slave is now connected!');
- });
- client.on('chat', (channel, user, message, self) => {
- if(message === '!about') {
- client.action('no', 'Planets_Slave is a bot made by Planet in Node.JS');
- }
- if(message === '!hi', '!hello') {
- client.action('no', `Hello ${user['display-name']}!`);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement