getVip is no longer time limited, it will remove it once a limit of vip users is reached (to be implemented)
23 lines
338 B
TypeScript
23 lines
338 B
TypeScript
import { chatClient } from "../..";
|
|
import { say } from "..";
|
|
|
|
async function addVip(
|
|
channel: string,
|
|
username: string,
|
|
message?: string
|
|
): Promise<boolean> {
|
|
try {
|
|
await chatClient.addVip(channel, username);
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
|
|
if (message) {
|
|
await say(channel, message);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
export { addVip };
|