@skyra/shared-http-pieces
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

@skyra/shared-http-pieces Crowdin

The shared commands used for ArchId Network's HTTP-only bots.

Setup

  • Define locales/{{lng}}/commands/shared:infoEmbedDescription as a string. This is the content displayed in /info's embed description.
  • Define the information variables.

Usage

You can either register after setting environment parameters:

process.env.CLIENT_REPOSITORY = 'https://github.com/skyra-project/skyra';
process.env.CLIENT_INVITE =
	'https://discord.com/oauth2/authorize?client_id=266624760782258186&permissions=534185897078&scope=bot%20applications.commands';

import '@skyra/shared-http-pieces/register';

Or import its utilities as well as registering:

import { setRepository, setInvite } from '@skyra/shared-http-pieces';
import '@skyra/shared-http-pieces/register';

setRepository('skyra'); // setRepository('https://github.com/skyra-project/skyra');
setInvite('266624760782258186', '534185897078');

Furthermore, error handling can be enabled by setting the SENTRY_DSN, @skyra/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().

Package Sidebar

Install

npm i @skyra/shared-http-pieces

Weekly Downloads

166

Version

1.2.2

License

Apache-2.0

Unpacked Size

298 kB

Total Files

100

Last publish

Collaborators

  • favna
  • kyranet