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

Implement slash (/) commands to replace "!" command syntax #28

Open
5 tasks
GumptionWare opened this issue Mar 1, 2023 · 0 comments
Open
5 tasks

Implement slash (/) commands to replace "!" command syntax #28

GumptionWare opened this issue Mar 1, 2023 · 0 comments

Comments

@GumptionWare
Copy link
Owner

GumptionWare commented Mar 1, 2023

This will be an "Admin" function because we will only execute this logic when linking KnowBot to a new guild.

Logic Outline

  1. Figure out if our commands are already present:

IEX> Nostrum.Api.get_global_application_commands (Global commands)

IEX> Nostrum.Api.get_guildl_application_commands(<guild_id>) (Guild level commands)

  1. If NOT already present, execute create_command logic:

NOTE: We show the create_guild_application_command syntax instead of the create_global_application_command syntax, which may not be the best practice once the initial development is completed.

  • The create_guild... syntax is intended for quick feedback during development and debugging.
  • Using the create_global... syntax is probably better as the "go-to" in the published admin functionality.
  1. Confirm the list of commands by repeating the applicable flavor of step 1 above.

To-Do (maybe sub-tickets)

  • /Help (... /h, /help, /?)
  • /FAQ
  • /Q ( ... /q, /question ... /ask /ASK ...)
  • /Answer
  • Expose a button in Discord .... click the button to answer that question.
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

1 participant