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: "oauth:929l3ycvb97i729obgy47bicjc0zqe"
- },
- channels: ["#exoti_x"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function(address, port) {
- 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 === "!twitter") {
- client.action(channel, "twitter.com/blankktweets");
- }
- if(message === "Hey") {
- client.action(channel, "Hi there!");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement