{"id":21355304,"url":"https://github.com/wanderer-moe/discord-bot","last_synced_at":"2025-03-16T05:24:14.104Z","repository":{"id":178491489,"uuid":"661925464","full_name":"wanderer-moe/discord-bot","owner":"wanderer-moe","description":"🦀 Entirely Serverless Rust Discord Bot using Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2023-07-05T04:31:46.000Z","size":74,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-22T17:47:23.134Z","etag":null,"topics":["cf-workers","cloudflare-workers","d1","workers-rs"],"latest_commit_sha":null,"homepage":"https://git.wanderer.moe/discord-bot","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wanderer-moe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-04T01:46:40.000Z","updated_at":"2024-03-21T04:55:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0de8c24-9e99-45a6-a6c6-6c3e9e7c2e21","html_url":"https://github.com/wanderer-moe/discord-bot","commit_stats":null,"previous_names":["wanderer-moe/discord-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanderer-moe%2Fdiscord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanderer-moe%2Fdiscord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanderer-moe%2Fdiscord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanderer-moe%2Fdiscord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wanderer-moe","download_url":"https://codeload.github.com/wanderer-moe/discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243829004,"owners_count":20354595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cf-workers","cloudflare-workers","d1","workers-rs"],"created_at":"2024-11-22T04:16:39.671Z","updated_at":"2025-03-16T05:24:14.098Z","avatar_url":"https://github.com/wanderer-moe.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Serverless Discord Bot Created with Rust \u0026 Cloudflare Workers\n\n[![Rust Report Card](https://rust-reportcard.xuri.me/badge/github.com/wanderer-moe/discord-bot)](https://rust-reportcard.xuri.me/report/github.com/wanderer-moe/discord-bot)\n\n## Setup\n\n- Clone repo `git clone https://github.com/wanderer-moe/discord-bot` and use it in your own repository.\n- Install wrangler \u0026 create a cf worker for this project\n- Modify `wrangler.toml` to match your needs (D1 binding, Worker Name, etc)\n- Enter appropiate secrets using `wrangler secret put` for your bots `DISCORD_TOKEN`, `DISCORD_APPLICATION_ID` and `DISCORD_PUBLIC_KEY`\n- Generate a Cloudflare API based off the \"Edit Cloudflare Workers\" template, and add it as `CF_API_TOKEN` in your repository secrets, this is used for the github action to deploy the worker.\n- Add your Interactions Endpoint URL on your App - this allows interactions to be recieved over POST requests.\n- You can publish your worker using `wrangler publish`, then create a POST request to `https://\u003cworker-url\u003e/register` - this will register your application commands with discord.\n\n## Run locally\n\n```bash\nwrangler dev\n```\n\n## Deploy\n\n```bash\nwrangler publish\n```\n\n## Actions\n\nThere is a github action that will automatically deploy the worker on push to main branch \u0026 will check for idiomatic code \u0026 formatting on pull requests, as `@cloudflare/wrangler-action` doesn't support rust-wasm workers yet,\n\nA 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`.\n\n## Credits\n\nThis code is based off [mcdallas/rust-discord-bot](https://github.com/mcdallas/rust-discord-bot/tree/master)\n\n## License\n\nThis repository is licensed under the [GNU Affero General Public License v3.0](https://choosealicense.com/licenses/gpl-3.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.**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanderer-moe%2Fdiscord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwanderer-moe%2Fdiscord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanderer-moe%2Fdiscord-bot/lists"}