Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tmi = require("tmi.js");
- var clientOptions = {
- options: {
- debug: false
- },
- connection: {
- reconnect: true
- },
- identity: {
- username: "your-bot-username",
- password: "oauth:your-token"
- },
- channels: ["#schmoopiie"]
- };
- var client = tmi.client(clientOptions);
- client.connect();
- client.on("join", function (channel, username) {
- if (username === clientOptions.identity.username.toLowerCase()) {
- console.log(client.userstate);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement