1
0

♻️ Extract chatClient and actions into folders

This commit is contained in:
2021-12-26 01:16:23 +01:00
parent ca34a6a090
commit 93ef43ef12
10 changed files with 155 additions and 157 deletions

View File

@@ -0,0 +1,18 @@
import { chatClient } from "../..";
import { say } from "..";
// adds a user to vips
async function addVip(
channel: string,
username: string,
message?: string
): Promise<void> {
if (!message) {
message = `Otorgado VIP a @${username}.`;
}
await chatClient.addVip(channel, username);
say(channel, message);
}
export { addVip };