Anyone know a Serverless Discord Bot framework/template?
otherwise i gotta make my own
14 Replies
and before anyone comes with a "you cant make a serverless discord bot", yes you can
thanks to the power of slash commands
(also google it)
codeSTACKr
YouTube
Build a DISCORD Slash Command BOT with Cloudflare Workers!! Deploy ...
Cloudflare Workers: https://workers.cloudflare.com/
Docs with tutorials, examples, starters: https://developers.cloudflare.com/workers/
In this video, we're going to take a look at Cloudflare Workers. I'll give you an overview of what Workers is and what you can do with it. Then, we'll use Workers to build and implement a Discord slash comman...
npm
slash-create
Create and sync Discord slash commands!. Latest version: 5.11.0, last published: a month ago. Start using slash-create in your project by running
npm i slash-create
. There are 5 other projects in the npm registry using slash-create.this is promising and has a cli for updating slash commands
lol
what language?
If it's TS, technically discord has their own framework https://github.com/discord/discord-interactions-js
GitHub
GitHub - discord/discord-interactions-js: JS/Node helpers for Disco...
JS/Node helpers for Discord Interactions . Contribute to discord/discord-interactions-js development by creating an account on GitHub.
It's not super updated
But it gives you the primitives to handle the rest of creating and responding to interactions
ts
Yeah my coworker made one, its not perfect but it works and is for workers https://github.com/mrbbot/slshx
GitHub
GitHub - mrbbot/slshx: ⚔️ Strongly-typed Discord commands on Cloudf...
⚔️ Strongly-typed Discord commands on Cloudflare Workers - GitHub - mrbbot/slshx: ⚔️ Strongly-typed Discord commands on Cloudflare Workers
dats my face