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: {
- reconnect: true
- },
- identity: {
- username: "ExplosionTVBot",
- password: "Privat code xD"
- },
- channels: ["GamingExplosionTV"] // channels for bot to be in
- };
- var client = new tmi.client(options); // Sets up the connection
- client.connect(); //Connects to Twitch server
- client.on("chat", function (channel, userstate, message, self) {
- if (message === "!youtube") { // If user types !youtube
- client.say("GamingExplosionTV", "Her har du et link til min YouTube kanal ----------> https://www.youtube.com/channel/UC5crlg90mOT-AXR8PWPAZOg"); // trigger this command
- }
- });
- var client = new tmi.client(options); // Sets up the connection
- client.connect();
- client.on("chat", function (channel, userstate, message, self) {
- if (message === "!facebook") { // If user types !facebook
- client.say("GamingExplosionTV", "Her har du et link til min Facebook side ----------> https://www.facebook.com/GamingExplosion/"); // trigger this command
- }
- });
- var client = new tmi.client(options); // Sets up the connection
- client.connect();
- client.on("chat", function (channel, userstate, message, self) {
- if (message === "!discord") { // If user types !discord
- client.say("GamingExplosionTV", "Her er der et link til min Discord ----------> https://discordapp.com/channels/208890814560993280/208890814560993280"); // trigger this command
- }
- });
- var client = new tmi.client(options); // Sets up the connection
- client.connect();
- client.on("chat", function (channel, userstate, message, self) {
- if (message === "!instagram") { // If user types !instagram
- client.say("GamingExplosionTV", "Her har du et link til min Instagram side ----------> https://www.instagram.com/gaming_explosion/"); // trigger this command
- }
- });
- var client = new tmi.client(options); // Sets up the connection
- client.connect();
- client.on("chat", function (channel, userstate, message, self) {
- if (message === "!store") { // If user types !store
- client.say("GamingExplosionTV", "Her kan du indløse points du har optjent ved at se streamen :D------------------> https://www.revlo.co/gamingexplosion090"); // trigger this command
- }
- });
- var client = new tmi.client(options); // Sets up the connection
- client.connect();
- client.on("chat", function (channel, userstate, message, self) {
- if (message === "!twitter") { // If user types !twitter
- client.say("GamingExplosionTV", "Her har du et link til min Twitter side ---------> https://twitter.com/MartinExplosion"); // trigger this command
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement