Files
discordeno/site/tutorial/nodejs/CommandHandler/getting-started.md
Jonathan Ho 987b4058cb Site: update site structure and add architecture page (#2675)
* remove blog

* fix: license

* chore: bump docusaurus

* separate benchmark page

* move to sub folder

* fix blog path

* Chore: update site

* fix: only deploy on push and dispatch

* fix: on:

* ci: merge workflow

* ci: fix if

* refactor: dump preset
2022-12-04 08:36:10 -06:00

656 B

sidebar_position
sidebar_position
1

Getting Started with the Command Manager

One of the most important characteristics of bots is that they have commands that can be used to interact with the bot.

Hard coding your commands in an event function is not the best code practice and should be strictly prevented.

In the following we will show you how to create a command manager, which is compatible with Discordeno's Client.

  • Load Commands
  • Handle Commands
  • Reload Commands

:::info template

You can also copy the CommandManager from the template repo.

:::