Skip to content
 
 

Repository files navigation

BouncerBot

A multi-component project featuring a C# Discord bot (utilizing NetCord) and a Cloudflare Worker backend. Developed for the MouseHunt Community Discord Server for integration with the HitGrab game MouseHunt.

Components

1. Discord Bot (discord-bot/)

  • Built with .NET 10.0
  • Uses NetCord for Discord API
  • Entity Framework Core for data access
  • Modular design: commands, services, gateway handlers

Building

  1. Install .NET 10.0 SDK

  2. Build:

    dotnet build

2. Cloudflare Worker (worker/)

  • A simple Request trampoline due to Cloudflare protection for MouseHunt
  • Uses Wrangler for deployment

Setup

  1. Install Bun and Wrangler

  2. Navigate to worker

  3. Install dependencies:

    bun install
  4. Run locally:

    wrangler dev
  5. Deploy:

    wrangler deploy

CI/CD

  • Automated deployment via GitHub Actions (.github/workflows/cloudflare.yml)
  • Deploys worker from /worker directory

Testing

  • C# bot: MSTest (see bot/tests/)
  • Worker: Vitest (see worker/tests/)

Contributing

  1. Fork the repo
  2. Create a feature branch
  3. Submit a pull request

License

MIT


For more details, see the documentation in each subdirectory.

About

Discord Bot for integration with (primarily) MouseHunt Community Server.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages