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: "cdewbot",
- password: ""
- },
- channels: ["tdey"]
- };
- var client = new tmi.client(options);
- client.connect();
- //Detect when people join server and send message *NOT WORKING*
- //client.on('join', function(channel, username, self) {
- // if(channel === "cdewx" && username === "freeskinstrihard"){
- // client.say("Hello tdey :) ")
- // }
- //});
- // Cooldown for commands
- // Exact word commands
- client.on('chat', function(channel, user, message, self) {
- if(message.toLowerCase() === "!tdey") {
- client.action("tdey", "THE BEST MOD SeemsGood");}
- if(message.toLowerCase() === "wormpls") {
- client.action("cdewx", "wormpls");}
- if(message.toLowerCase() === "!bsx") {
- client.action("cdewx", "ur bad btw");}
- if(message.toLowerCase() === "!rebel") {
- client.action("cdewx", "r Kreygasm e Kreygasm b Kreygasm e Kreygasm l ");}
- if(message.toLowerCase() === "!crotiz") {
- client.action("cdewx", "http://imgur.com/a/VpT13");}
- if(message.toLowerCase() === "!cdew") {
- client.action("cdewx", "still 0-5 FeelsBadMan @" + user['display-name']);}
- if(message.toLowerCase() === "!qualify") {
- client.action("cdewx", "Cup #2 is on May 14th, Cup #3 is on June 10th, following cups TBA @" + user['display-name']);}
- if(message.toLowerCase() === "!90") {
- client.action("cdewx", "http://i.imgur.com/c14aIra.png @" + user['display-name']);}
- if(message.toLowerCase() === "!5guys") {
- client.action("cdewx", "https://clips.twitch.tv/DistinctBlindingElkBleedPurple gachiGASM");}
- if(message.toLowerCase() === "!inviable") {
- client.action("cdewx", "https://clips.twitch.tv/ElatedAlertBaboonAMPEnergyCherry");}
- });
- // Mod only
- // if(message === "!modonlycoms" && user.mod) {
- // client.action("cdewx", "hi");}
- // Sub only *find sub com*
- // if(message === "!subonlycoms" && user.subscriber) {
- // client.action("cdewx", "hi")
- // }
- //});
- // If words are contained anywhere in the message
- client.on('chat', function(channel, user, text, self) {
- if(text.match ("fuck you")) {
- client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
- if(text.match ("positivity")) {
- client.action("cdewx", ":)");}
- if(text.match ("Fuck you")) {
- client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
- if(text.match ("you suck")) {
- client.action("cdewx", "You're probably 1400 LUL xD @" + user['display-name']);}
- if(text.match ("u suck")) {
- client.action("cdewx", "You're probably 1400 LUL xD @" + user['display-name']);}
- if(text.match ("fuck u")) {
- client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
- if(text.match ("Fuck u")) {
- client.action("cdewx", "NO FUCK YOU ( ° ͜ʖ͡°)╭∩╮ @" + user['display-name']);}
- if(text.match ("fuck me")) {
- client.action("cdewx", "ok KappaPride @" + user['display-name']);}
- });
- // Timeout for banned words
- client.on('chat', function(channel, user, text, self) {
- if(text.match ("ni TriHard TriHard er")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 600")
- client.say("cdewx", user.username + " cmonBruh ")};
- if(text.match ("nigger")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 600")
- client.say("cdewx", user.username + " cmonBruh ")};
- if(text.match ("niggger")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 600")
- client.say("cdewx", user.username + " cmonBruh ")};
- if(text.match ("pornhub.com")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 600")
- client.say("cdewx", user.username + " WutFace ")};
- if(text.match ("faggot")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 600")
- client.say("cdewx", user.username + " dewTrig ")};
- if(text.match ("https://www.youtube.com/watch?v=IQbQtQu_uOI")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 600")
- if(text.match ("https://www.youtube.com/watch?v=UTfTd4yHAlg")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 600")
- if(text.match ("!vanish")) {
- client.say("cdewx", "/timeout " + user['display-name'] + " 1")};
- });
- // Say when bot joins channel
- //client.on('connected', function(address, port) {
- // client.action("cdewx", "MrDestructoid checking in");
- //});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement