1 | import { IBotPlugin, IBotProvider } from '@lskjs/bots-base/types';
|
2 | import Module from '@lskjs/module';
|
3 | export declare abstract class BaseBotPlugin extends Module implements IBotPlugin {
|
4 | botsModule: any;
|
5 | providers: string[];
|
6 | bots: {};
|
7 | getConfig(): Promise<Record<string, any>>;
|
8 | canRunBot(bot: IBotProvider): boolean;
|
9 | initBot(bot: IBotProvider, name: string): Promise<void>;
|
10 | initBots(): Promise<void>;
|
11 | init(): Promise<void>;
|
12 | runBot(bot: IBotProvider, name: string): Promise<void>;
|
13 | runBots(): Promise<void>;
|
14 | run(): Promise<void>;
|
15 | }
|
16 | export default BaseBotPlugin;
|