Socket
Socket
Sign inDemoInstall

@cardstack/discord-bot

Package Overview
Dependencies
Maintainers
8
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardstack/discord-bot

Library for writing robust discord bots


Version published
Weekly downloads
4
decreased by-98.41%
Maintainers
8
Weekly downloads
 
Created
Source

cardstack discord-bot library

This library is intended to help write robust Discord Bots in node.js. It is a layer on top of the Discord Javascript SDK.

It allows implementation of new message handlers by simply adding a new file.

One example of using this library can be found in the hub package in this repository: https://github.com/cardstack/cardstack/tree/main/packages/hub/services/discord-bots/hub-bot

Notes

Instances of bots made with this library are able to collaborate with each other so that only one bot of a given type is processing commands at a time. This facilitates deploying without losing messages. The approach is documented here:

https://github.com/cardstack/cardstack/tree/main/packages/discord-bot/docs

Because of this, it is important that commands load/store any conversation state in the database, not in memory.

FAQs

Package last updated on 08 Nov 2023

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