♻️ Extract chatClient and actions into folders
This commit is contained in:
18
src/backend/chatClient/clientActions/addVip/index.ts
Normal file
18
src/backend/chatClient/clientActions/addVip/index.ts
Normal 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 };
|
Reference in New Issue
Block a user