Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var tmi = require ('tmi.js');
- var options = {
- options: {
- debug: true
- },
- connection: {
- cluster: "aws",
- reconnect: true
- },
- identity: {
- // Bot username
- username: "COYGbot",
- // Twitch Chat OAuth Password
- password: "oauth:n75pg2fphmd18y27tiqfyxhngzx9hv"
- },
- // Channel username
- channels: ["wiktoroman"]
- };
- var client = new tmi.client(options);
- client.connect();
- client.on('connected', function (address, port){
- // Connected to server
- });
- client.on('hat', function(channel, user, message, self) {
- if(message === "!ålder")
- client.action("wiktoroman", "Wiktor är född 2000")
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement