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:
const { echo, eval, ping } = get_default_cmds<MyEcho>();// the following assumes you setup a static start// method on your extended Echo classconst bot = new MyEcho() .registerCmds([ echo, eval, ping ]) .init(); Copy
const { echo, eval, ping } = get_default_cmds<MyEcho>();// the following assumes you setup a static start// method on your extended Echo classconst bot = new MyEcho() .registerCmds([ echo, eval, ping ]) .init();
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: