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: "Aroy",
- password: "oauth:ohemy3ysw17hk69l8rfyt6s29z5z5y"
- },
- channels: ["aroy"]
- };
- var client = new tmi.client(options);
- client.connect();
- //AROKH
- //as i connect
- client.on('connected', function(address, port) {
- client.say("aroy", "/me Aroy Connected");
- });
- client.on('chat', function(channel, user, message, self) {
- if(message === "!aroy") {
- client.say("aroy", "Not available.");
- }
- });
- client.on('chat', function(channel, user, message, self) {
- if(message === "!mod" && user.mod) {
- client.say("aroy", "FeelsModMan @" + user['display-name']);
- }
- });
- client.on('hosting', function(channel, target, viewers) {
- client.say('aroy', '/me Started hosting www.twitch.tv/' + target);
- });
- client.on("ban", (channel, username, reason) => {
- client.say("aroy", "xbn");
- });
- client.on("emoteonly", (channel, enabled) =>{
- client.say("aroy", "KAPOW antonnPog");
- });
- client.on('chat', function(channel, user, message, self) {
- if(message === "!test" && user.subscriber) {
- client.say("aroy", "@" + user['display-name'] + " hi");
- }
- });
- client.on('chat', function(channel, user, message, self) {
- if(message === "!yes") {
- const list = [
- 'Shut up Kid',
- 'I am not available',
- 'Leave me Alone',
- 'Bitch what you want',
- ];
- const rand = [Math.floor(Math.random() * list.length)];
- client.say("aroy", "@" + user['display-name'] + " " + list[rand] );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement