Skip to content

"Hide OOB" codegen checkmark #43

Open
@davfsa

Description

@davfsa

While nice to output full functional bot, there is a use case to only generate the explicit components (components = []) .

As such, it would be nice to have a checkmark to toggle between the two modes.

Implementation wise, this can be done with two main entry point templates: main.language.ejs and main_oob.language.ejs, which will be rendered depending on the state of the checkmark.

(The following is not finalized and still up for debate) Additionally, the OOB script must be simple and include only the necessary, which would be:

  • Instantiating bot
  • Registering a listener to message create
    • If the bot is pinged in a message, send the components to that channel
  • Run the bot

For libraries that do not support this behavior, for one reason or another, please ask a maintainer on what the OOB script should do

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions