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: "botchickenz",
- password: ""
- },
- channels: ["spazzychickenz"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('chat', function(channel, user, message, self) {
- if(message === "!chickenme") {
- client.action("spazzychickenz", user['display-name'] + " is a chicken like spazzy!");
- } else {
- client.action("spazzychickenz", user['display-name'] + " Sup");
- }
- });
- client.on('connected', function(address, port) {
- console.log("Address: " + address + " Port:" + port);
- client.action("spazzychickenz", "BotChickenz is now connexted to the channel");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement