discord-lambda

Crates and utils for setting up Vercel lambda-based Discord bots

GPL-3.0 License

Downloads
26K
Stars
2
Committers
1

Discord bots as Vercel lambda functions

This project aims to create an easy method for building Discord bots on the Vercel platform.

The benefit of building bots this way is, you do not have to pay for unused uptime, since the handlers are only spun up when a message is sent.

Crates in this repo

  • discord-lambda [WIP] Crates.io Docs.rs
    • The primary API for this project. Handles Discord magic in the background, while routing command calls to the client code.
  • discord-message Crates.io Docs.rs
    • Type definitions for creating Discord chat messages and exporting them to webhook-ready JSON.
  • discord-webhook-client Crates.io Docs.rs
    • A small wrapper library that can send messages via webhook to Discord.
  • discord-sendmessage Crates.io
    • A debug utility for sending discord messages from the commandline