Registry

The registry file is what is used to register the bot's commands and events. This is a script which is ran at startup and adds all the commands and events to the bot.

Although you can register these outside of the registry file, this script makes it a centralised place for it to be done at.

Adding Commands

Commands are added in the RegisterCommands function.

The basic syntax is as follows:

client.RegisterCommand("Name", new Command(), "ServerId");

Adding Events

Events are added in the RegisterEvents function.

The basic syntax is as follows:

client.RegisterEvent(new Events());

Revision #1
Created 2025-10-18 13:58:29 UTC by Ethan
Updated 2025-10-18 13:58:44 UTC by Ethan