@twitchfy/chatbot
Version:
A powerful node module to make your own Twitch ChatBot
20 lines (19 loc) • 963 B
TypeScript
/**
* The event handler.
*/
export declare class EventHandler {
/**
* The directory of the events.
*/
readonly dir: string;
/**
* Creates a new instance of the event handler.
* @param dir The directory of the events.
*/
constructor(dir: string);
/**
* Load the events.
* @returns The loaded events.
*/
load(): Promise<(import("types").EventData<import("enums").EventSubConnection, "ChannelChatClear"> | import("types").EventData<import("enums").EventSubConnection, "ChannelFollow"> | import("types").EventData<import("enums").EventSubConnection, "ChannelUpdate"> | import("types").EventData<import("enums").EventSubConnection, "StreamOnline"> | import("types").EventData<import("enums").EventSubConnection, "ChannelChatMessage"> | import("types").EventData<import("enums").EventSubConnection, "StreamOffline"> | import("types").EventData<import("enums").EventSubConnection, "ChatBotReady">)[]>;
}