1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| "use strict";
const tmi = require('tmi.js');
let options = {
options : { debug: true, },
connection : { cluster: "aws", reconnect: true, },
identity : { username: "ZorxiBot", password: "(Partis Privet)", },
channels : [ "Louminia1" ],
};
let client = new tmi.client(options);
client.connect();
console.log("\n\n", options);
client.on("chat", function (channel, userstate, message, self) {
var displayName = userstate["display-name"];
var username = userstate.username;
console.log(`(Twitch): <${ username }|${ displayName }>: ${ message }`);
if (self) return;
}); |
Partager