@warsam-e/echo
    Preparing search index...

    Function get_default_cmds

    • returns the default commands available.

      It may looks kinda silly, but this is for when you want to override the main type for Echo.

      Like if you've extended Echo, you can do the following to get the correct type:

      Type Parameters

      Returns { echo: Command<T>; eval: Command<T>; ping: Command<T> }

      const { echo, eval, ping } = get_default_cmds<MyEcho>();

      // the following assumes you setup a static start
      // method on your extended Echo class
      const bot = new MyEcho()
      .registerCmds([ echo, eval, ping ])
      .init();