-
-
Save RAnders00/99b92e131873e9efc5f3f6c7aab26113 to your computer and use it in GitHub Desktop.
Pepega
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ChatClient } = require("dank-twitch-irc"); | |
//Config with login and passwd. | |
let client = new ChatClient({ | |
username: "tolekkbot", | |
password: "superlongpasswordnam", | |
rateLimits: "verifiedBot" | |
}); | |
client.on("ready", () => console.log("Successfully connected to chat")); | |
client.on("close", error => { | |
if (error != null) { | |
console.error("Client closed due to error", error); | |
} | |
}); | |
client.on("PRIVMSG", msg => { | |
console.log(`[#${msg.channelName}] ${msg.displayName}: ${msg.messageText}`); | |
}); | |
// See below for more events | |
client.connect(); | |
client.join("tolekk"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment