Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants