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: {
- reconnect: true
- },
- identity: {
- username: "CoffeeBotAlpha",
- password: "CENSORED"
- },
- channels: ["#exoti_x","#Serpent_AI","#TezManGaming"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function(address, port, channel) {
- client.action("exoti_x", "Hello i am CoffeeBot i am currently in alpha, i love coffee and i like interacting with people, so welcome to the stream and hello.");
- });
- client.on('chat', function(channel, user, message, self) {
- if(message === "!creatortwitter") {
- client.action(channel, "twitter.com/blankktweets");
- }
- if(message === "Hey") {
- client.action(channel, "Hi there!");
- }
- if(message === "Gimme a cookie") {
- client.action(channel, "Maybe :)");
- }
- if(message === "Give me a cookie") {
- client.action(channel, "Maybe :)");
- }
- if(message === "!cookie") {
- client.action(channel, "Maybe :)");
- }
- if(message === "!creatoryoutube") {
- client.action(channel, "Its private...");
- }
- if(message === "!plannedupdates") {
- client.action(channel, "1.0.1-snapshota01 Add more commands.");
- }
- if(message === "!exotixisdope") {
- client.action(channel, "He is dope!");
- }
- if(message === "!tezman") {
- client.action(channel, "He is pretty nice.");
- }
- if(message === "!rekt") {
- client.action(channel, "Get rekt! " + user['display-name']);
- }
- if(message === "!hype") {
- client.action(channel, "Hype for " + user['display-name'] + " twitchRaid"); }
- });
- client.on("join", function (channel, username, self) {
- client.action(channel, "Hey there! " + user['display-name'] + " twitchRaid")
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement