Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tmi = require('tmi.js');
- var silent = true;
- var options = {
- options: {
- debug: true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- username: "",
- password: ""
- },
- channels: ["Cliff122", "STAMSITE", "FragtaleTV", "pajlada"]
- }
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function(address, port) {
- if (silent != true) {
- client.action("Cliff122", " joined the channel!");
- client.action("STAMSITE", " joined the channel!");
- client.action("FragtaleTV", " joined the channel!");
- client.action("pajlada", " joined the channel!");
- }
- });
- client.on("chat", function (channel, user, message, self) {
- if (channel == "#stamsite" && user["display-name"] == "STAMSITE") {
- if(message.substring(0,2) == "<3" && message.substring(message.length-2) == "<3") {
- client.say(channel, message);
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement