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

Add help command to list available commands #6

Open
Huy-Ngo opened this issue Oct 5, 2020 · 5 comments
Open

Add help command to list available commands #6

Huy-Ngo opened this issue Oct 5, 2020 · 5 comments

Comments

@Huy-Ngo
Copy link
Collaborator

Huy-Ngo commented Oct 5, 2020

With many new commands, help is needed. Most preferably, the help is printed when the bot is tagged in a message with help.

@Huy-Ngo Huy-Ngo changed the title Add help Add help command to list available commands Oct 5, 2020
@Huy-Ngo
Copy link
Collaborator Author

Huy-Ngo commented Oct 5, 2020

This help should be able to read from the code and not listed manually. This mean index.js needs to be refactored.

@dinhanhx
Copy link
Owner

dinhanhx commented Oct 5, 2020

So this means we put all cmds and paths into a json.

@Huy-Ngo
Copy link
Collaborator Author

Huy-Ngo commented Oct 6, 2020

Yep, but I haven't figured out how yet

@dinhanhx
Copy link
Owner

dinhanhx commented Oct 6, 2020

I am not an expert in js stuff but I found this maybe it can help.

https://www.npmjs.com/package/discord-command-parser

@Huy-Ngo
Copy link
Collaborator Author

Huy-Ngo commented Oct 6, 2020

It doesn't address this problem, but I need this so thanks.

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

No branches or pull requests

2 participants