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: "CoffeeBotAlpha",
- password: "oauth:r17au63s8034vhas4stfskkt2puecs"
- },
- channels: ["d0p3t"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function(address, port) {
- client.action("d0p3t", "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("d0p3t", "No twitter yet.");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement