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: "koriibot",
- password: ""
- },
- channels: ["koriio_o"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('chat', function(channel, user, message, self) {
- if(message === "re") {
- client.say("koriio_o", "re! " + user['display-name'])
- }
- if(message === "!eteindre") {
- client.say("koriio_o", "arrêt en cours.")
- client.disconnect();
- }
- if(message === "!koko") {
- client.say("koriio_o", "kokoooooo! <3")
- }
- if(message === "!amis") {
- client.say("koriio_o", "Si tu as du temps libre, tu peux aussi aller voir le live de:")
- client.say("koriio_o", "RitnTV, Mac_Aaron, alabama296, nicoredafr, xlepetitprince et biensur de kokodokidoki!")
- }
- });
- client.on('connected', function(adress, port) {
- console.log("Adress: " + adress + " Port: " + port);
- client.say("koriio_o", "/color Blue")
- client.say("koriio_o", "Je suis maintenant en service!")
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement