17 lines
388 B
JavaScript
17 lines
388 B
JavaScript
|
import {
|
||
|
AlternateMessageModifier,
|
||
|
ChatClient,
|
||
|
SlowModeRateLimiter,
|
||
|
} from "dank-twitch-irc";
|
||
|
|
||
|
export let client = new ChatClient({
|
||
|
username: process.env.TWITCH_USERNAME,
|
||
|
password: process.env.TWITCH_PASSWORD,
|
||
|
|
||
|
rateLimits: "default",
|
||
|
ignoreUnhandledPromiseRejections: true,
|
||
|
});
|
||
|
|
||
|
client.use(new SlowModeRateLimiter(client));
|
||
|
client.use(new AlternateMessageModifier(client));
|