Go to file
2025-09-02 20:57:13 +07:00
src fix: update environment variable parsing to use Bun.env for improved compatibility 2025-09-02 20:57:13 +07:00
.gitignore add .env to .gitignore 2025-08-29 00:33:01 +07:00
bun.lock feat: add pino logger for improved logging functionality and update dependencies 2025-09-02 20:50:46 +07:00
docker-compose.yml add docker-compose.yml for discord audit bot configuration 2025-08-29 00:45:28 +07:00
Dockerfile add Dockerfile and implement initial bot functionality with Hono framework 2025-08-29 00:45:23 +07:00
package.json feat: add pino logger for improved logging functionality and update dependencies 2025-09-02 20:50:46 +07:00
README.md feat: restructure configuration and command registration for improved clarity and functionality 2025-09-02 20:51:05 +07:00
tsconfig.json add Dockerfile and implement initial bot functionality with Hono framework 2025-08-29 00:45:23 +07:00

Police Discord Bot

Setup

  1. Install dependencies:

    bun install
    
  2. Create a .env file in the root of the project and add the following environment variables:

    BOT_TOKEN=
    APP_ID=
    PUBLIC_KEY=
    DEFAULT_GUILD_ID=
    ADMIN_KEY=
    OPENROUTER_API_KEY=
    PUNISH_ROLE_ID=
    
  3. Run the bot:

    bun run dev
    
  4. The bot will be running at http://localhost:3000. You will need to use a tool like ngrok to expose it to the internet for Discord to send interactions.

  5. Register the slash commands: The bot registers the commands on startup. Check the logs for confirmation.