npm
Source
Description
The shared commands used for Star Network’s HTTP-only bots.Setup
- Define
locales/{{lng}}/commands/shared:infoEmbedDescriptionas a string. This is the content displayed in/info’s embed description. - Define the information variables.
- Importing
@wolfstar/shared-http-pieces/registerregisters apreGenericsInitializationhook that adds this package’s bundled locales andcommands/sharednamespace to yourClient’s i18n configuration automatically, while retaining the consumer’s own locale path and namespaces. As long as it’s imported beforenew Client(...), no manual wiring is required. The resolved path is also exported aslocalesPath, if you need it directly.
Usage
You can either register after setting environment parameters:SENTRY_DSN, @wolfstar/shared-http-pieces includes a way to register Sentry and registers handlers to handle errors into Sentry. The plugin also reads SENTRY_ROOT to set RewriteFrames’s root, defaults to process.cwd().