Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ar tmi = require('tmi.js');
- var options = {
- options: {
- debug: true
- },
- connection: {
- reconnect: true
- },
- identity: {
- username: "ExplosionBot",
- password: ""
- };
- 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 === "!test") { // If user types !test
- client.say("GamingExplosionTV", "Testing command."); // trigger this command
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement