Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Const BASEDIR

BASEDIR: string = Path.join(__dirname, "../")

a global-ish variable to get the root of the app in order to locate files more effectively

Let READY

READY: boolean = false

A local variable to determine whether the bot is ready to parse commands

Const commands

commands: Commander = new Commander()

The Commander singleton which will be used to call all commands

Const discordClient

discordClient: Client = new Discord.Client()

Instantiates the connection to Discord

Let settings

settings: Settings

The Settings singleton

Functions

startupSequence

  • startupSequence(client: Client): Promise<boolean>
  • async function which instantiates the necessary global Commander and Settings objects

    Parameters

    • client: Client

      the Discordjs client object

    Returns Promise<boolean>

    • the value of this will be set to the READY variable

Legend

  • Variable
  • Function
  • Interface
  • Class

Generated using TypeDoc