wanderer-moe / discord-bot

🦀 Entirely Serverless Rust Discord Bot using Cloudflare Workers
https://git.wanderer.moe/discord-bot
GNU General Public License v3.0
2 stars 0 forks source link
cf-workers cloudflare-workers d1 workers-rs

Serverless Discord Bot Created with Rust & Cloudflare Workers

Rust Report Card

Setup

Run locally

wrangler dev

Deploy

wrangler publish

Actions

There is a github action that will automatically deploy the worker on push to main branch & will check for idiomatic code & formatting on pull requests, as @cloudflare/wrangler-action doesn't support rust-wasm workers yet,

A workaround is to run npx i -g wrangler where you pass in your CF_API_TOKEN repository secret into the env in the action before running wrangler publish.

Credits

This code is based off mcdallas/rust-discord-bot

License

This repository is licensed under the GNU Affero General Public License v3.0 license — You must state all significant changes made to the original software, make the source code available to the public with credit to the original author, original source, and use the same license.