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: "schnitzelcaptaindan",
- password: "oauth:8qklcb5lvrkzq8g36rxx40s1bgazjf"
- },
- channels: ["spooner96", "cuda87"]
- };
- var client = new tmi.client(options);
- client.connect();
- if (channel ='#spooner96') {
- setTimeout(function() {
- client.on('subscription', function(channel, username, method) {
- client.say(channel, "spoonerLovebomb");
- client.say(channel, "spoonerSub spoonerC");
- client.say(channel, "Thanks for subscribing " + username + "!");
- client.say(channel, "spoonerSub spoonerC");
- client.say(channel, "spoonerLovebomb");
- }, 5000);
- } );
- setTimeout(function() {
- client.on('resub', function(channel, username, months, message) {
- client.say(channel, "spoonerLovebomb");
- client.say(channel, "spoonerSub spoonerC");
- client.say(channel, "Thanks for re-subscribing " + username + "!");
- client.say(channel, "spoonerSub spoonerC");
- client.say(channel, "spoonerLovebomb");
- }, 5000);
- } );
- }
- else if(channel ='#cuda87') {
- client.on('subscription', function(channel, username, method) {
- client.say(channel, "cudaH");
- client.say(channel, "cudaGasm cudaHype");
- client.say(channel, "cudaW Thanks for subscribing " + username + "! cudaW");
- client.say(channel, "cudaGasm cudaHype");
- client.say(channel, "cudaH");
- } );
- client.on('resub', function(channel, username, months, message) {
- client.say(channel, "cudaH");
- client.say(channel, "cudaGasm cudaHype");
- client.say(channel, "cudaW Thanks for re-subscribing " + username + "! cudaW");
- client.say(channel, "cudaGasm cudaHype");
- client.say(channel, "cudaH");
- } );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement