Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var options = {
- options: {
- debug: true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- username: "Wulfy_zef",
- password: "oauth:VoHiYo"
- },
- channels: [channel]
- }
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function(address, port) {
- });
- var options2 = {
- options: {
- debug: true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- username: "Wulfyzef",
- password: "oauth:VoHiYo"
- },
- channels: [channel]
- }
- var client2 = new tmi.client(options2);
- client2.connect();
- client2.on('connected', function(address, port) {
- });
- var owner = "Wulfy_Zef";
- var hype = 1;
- function commands (channel, user, message, self) {
- if (message.startsWith("z!k") && user['display-name'] == owner) {
- hype = false;
- }
- else if(message.includes("z!hype") && !message.includes("!z!hype") && user['display-name'] == owner) {
- if(listentoanyone || user.mod) {
- hype = 1;
- var tmp_msg = message.split("z!")[1];
- var timer = tmp_msg.split(" ")[1];
- notifier.notify(tmp_msg.split(" ")[1]);
- setTimeout(excuteMethod, 1000);
- function excuteMethod () {
- client.whisper("TTDBot", "!p !pd !p !pd !p !pd !p !pd !p !pd !p !pd");
- timer--;
- if (timer >= 0 && hype) setTimeout(excuteMethod, 1000);
- }
- }
- }
- }
- client.on('chat', commands(channel, user, message, self));
- client2.on('chat', commands(channel, user, message, self));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement