mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 01:01:39 +01:00
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
import { eventSub } from "index";
|
|
import { redis } from "lib/redis";
|
|
import { streamerId } from "main";
|
|
|
|
eventSub.onChannelModeratorAdd(streamerId, async mod => {
|
|
await redis.set(`user:${mod.userId}:mod`, '1');
|
|
});
|
|
|
|
eventSub.onChannelModeratorRemove(streamerId, async mod => {
|
|
await redis.del(`user:${mod.userId}:mod`);
|
|
});
|