Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tmi = require('tmi.js');
- var options = {
- options: {
- debug: true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- username: "szczurtv",
- password: "oauth:41iir6a7r529smz26zl6jtp4yo9eqa"
- },
- channels: ["1kswodas"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function(address, port){
- client.action("1kswodas", "Witam");
- });
- client.on('chat', function(channel, user, message, self){
- if(message === "!eldo")
- client.action("1kswodas", "LUL");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement