You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@skyra/shared-http-pieces

Package Overview
Dependencies
Maintainers
2
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyra/shared-http-pieces

The common pieces for ArchId Network's HTTP-only bots

1.2.3
latest
Source
npmnpm
Version published
Weekly downloads
339
50%
Maintainers
2
Weekly downloads
 
Created
Source

@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().

Keywords

discord

FAQs

Package last updated on 22 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts