Go to file
2025-09-02 21:08:19 +07:00
src feat: implement command registration and management with Discord API 2025-09-02 21:08:19 +07:00
.gitignore add .env to .gitignore 2025-08-29 00:33:01 +07:00
bun.lock feat: add pino-pretty dependency for enhanced logging output 2025-09-02 21:02:00 +07:00
docker-compose.yml feat: add OPENROUTER_API_KEY to environment variables in docker-compose 2025-09-02 20:59:32 +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-pretty dependency for enhanced logging output 2025-09-02 21:02:00 +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.