An always-online Discord bot to fetch information from various API
- 📄 Licensed under Apache-2.0
- ⚙️ Requires TypeScript 4.9 or 4.9+ (particularly due to use of
satisfies
operator) - ⚙️ Uses ES modules and not CJS
- 🚀 Minimal amount of dependencies
- 🔶 Powered by Cloudflare Workers
- 🔗 Bot Invite Link
- Searching and fetching articles from Wikipedia.
- Searching and fetching articles from various fandom pages.
- Searching and fetching the details of a compound from PubChem using their PUG API.
- Install
node.js
andnpm
. - Clone this repository:
git clone https://github.com/supershadoe/ritsu
. - Create a worker in Cloudflare's dashboard.
- Run
npm update
to download all node modules. - Set your worker's name and domain/routes in
wrangler.toml
. - Login to your Cloudflare account using wrangler:
npx wrangler login
. - Run a locally hosted bot for development purposes using
npx wrangler dev
additionally with--local
if you want to just use miniflare and not connect to a Cloudflare server for using KV and durable objects (this bot doesn't need those right now). - Upload the code to run serverlessly on any cloudflare datacenter using
npx wrangler publish
.