1
0
This repository has been archived on 2022-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
twitch-channel-redemptions/src/backend/chatClient/clientActions/addVip/index.ts
alexbcberio 05a93ba316 ♻️ Cleaned lots of code and change getvip implementation
getVip is no longer time limited, it will remove it once a limit of
vip users is reached (to be implemented)
2022-01-05 18:13:59 +01:00

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 };