Options
All
  • Public
  • Public/Protected
  • All
Menu

el-bot

Index

Functions

createBot

createLogger

  • createLogger(label?: string): Logger
  • 创建日志工具,基于 winston

    Parameters

    • label: string = "el-bot"

    Returns Logger

defineBotConfig

defineConfig

  • defineConfig(config: default): El

loadConfigFromFile

  • loadConfigFromFile(configFile?: string, configRoot?: string): Promise<undefined | null | BotConfig>
  • 从文件加载配置

    Parameters

    • Optional configFile: string
    • configRoot: string = ...

    Returns Promise<undefined | null | BotConfig>

Generated using TypeDoc