An always-online Discord bot to fetch information from various API
- 📄 Licensed under Apache-2.0
- 🔶 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 install
to download all node modules. - Set your worker's name and domain/routes in
wrangler.toml
. - Generate types for the project using
npx wrangler types
. - Copy
.dev.vars.example
to.dev.vars
and set the values specific to your bot. - Run the bot locally using
npx wrangler dev
.
- Start the development server using
npx wrangler dev
. - Go to the
/sync-cmds
route on the local server. - The commands should have synced with Discord after credential grant.
- Login to your Cloudflare account using wrangler:
npx wrangler login
. - Bundle and upload the code using
npx wrangler deploy
.