Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const tmi = require("tmi.js");
- const options = {
- options: {
- debug: true
- },
- connection: {
- reconnect: true
- },
- identity: {
- username: "yuritheknifewaifu",
- password: "no u"
- },
- channels: ["#yuritheknifewaifu"]
- };
- const client = new tmi.client(options);
- // Connect the client to the server..
- client.connect();
- client.on("chat", function (channel, user, message, self) {
- // Don't listen to my own messages..
- if (self) return;
- console.log(message + user);
- if(message === "!info")
- client.action("yuritheknifewaifu", "I'm a bot from discord imported to twitch! I currently have no commands. But that'll change very soon! I love you all!");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement