Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tmi = require('tmi.js')
- var option = {
- option: {
- debug:true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- username: "belierbot",
- password: "oauth:0a59ed5nmg2utqn4jpo678f8fj7256"
- },
- channels: ["Belier_TV"]
- };
- var client = new tmi.client(option);
- client.connect();
- client.on("chat", function(channel, user, message, self) {
- if(message === "ca va BelierBot" || message === "รงa va BelierBot ?" || message === "Ca va BelierBot ?") {
- client.action("Belier_TV", "Je ne suis pas Moobot omg !");
- }
- })
- client.on("chat", function(channel, user, message, self) {
- if(message === "Qui est le meilleur Modo ?") {
- if (user.mod) {
- client.action("Belier_TV", "C'est toi" + user + "Tu le sais bien <3");
- }
- else {
- client.action("Belier_TV", "Au hasard, Freezeex")
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement