Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

[FEATURE] Commands should not be registered on start #723

Open
eddiejaoude opened this issue Jun 10, 2022 · 1 comment
Open

[FEATURE] Commands should not be registered on start #723

eddiejaoude opened this issue Jun 10, 2022 · 1 comment

Comments

@eddiejaoude
Copy link
Member

Description

No response

Screenshots

No response

Additional information

No response

@naomi-lgbt
Copy link
Contributor

The best approach for this would be to set an OWNER_ID environment variable.

Then, a check in the message event if the message.author.id matches that variable, and if the content is register commands, and if so call the registerCommands utility.

Note that we want to leave the loadCommands module called in the main.ts file there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants