2022-02-13 03:49:36 +00:00
|
|
|
const client = new tmi.Client({
|
2022-02-13 04:03:56 +00:00
|
|
|
options: { debug: true },
|
|
|
|
identity: {
|
|
|
|
username: 'sariboto',
|
|
|
|
password: 'oauth:480i2mbv7zvfjz1t3wplj5di530p9r'
|
|
|
|
},
|
2022-02-13 03:53:14 +00:00
|
|
|
|
|
|
|
channels: [ 'sarimoko' ]
|
2022-02-13 03:49:36 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
client.connect();
|
|
|
|
|
|
|
|
client.on('message', (channel, tags, message, self) => {
|
|
|
|
// "Alca: Hello, World!"
|
|
|
|
console.log(`${tags['display-name']}: ${message}`);
|
|
|
|
});
|
|
|
|
|