Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@patu/api-discord-message

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patu/api-discord-message

``` TOKEN= CHANNEL_ID= PORT= npx @patu/api-discord-message ```

  • 0.1.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

discord-notifier

Standalone service:

TOKEN= CHANNEL_ID= PORT= npx @patu/api-discord-message

Import as part of project:

Provide values with envs .env

CHANNEL_ID=
TOKEN=
PORT=

then call start

import { start } from "notifier"

start().catch(e => {
    console.error(e);
});

or pass values directly to start:

import { start } from "notifier"

start({
    channelId: "",
    token: "",
    port: 9999
}).catch(e => {
    console.error(e);
});

Send message:

curl  -X POST \
  'http://0.0.0.0:9999' \
  --header 'Accept: */*' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "message": "Test message"
}'

FAQs

Package last updated on 20 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc