From e3971f1799054a64843557d9bd75f2c4709e6bfa Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Mon, 6 Jul 2026 00:24:16 +0100 Subject: readme --- 174bg/discord-bot/README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 174bg/discord-bot/README.md (limited to '174bg/discord-bot') diff --git a/174bg/discord-bot/README.md b/174bg/discord-bot/README.md new file mode 100644 index 0000000..dc65293 --- /dev/null +++ b/174bg/discord-bot/README.md @@ -0,0 +1,41 @@ +# 174BG Discord Bot + +This repository contains the source code for the official Discord bot for the 174th Battle Group community. The bot is written in JavaScript using the [discord.js](https://discord.js.org) library. + +## Features + +- `/create-requisition-ticket` — Creates a private ticket channel under the **tickets** category so a member can submit a request to the Quartermaster role. +- `/delete-all-requisition-tickets` — Bulk-deletes all open requisition tickets. Restricted to administrators. +- Logs ticket activity (creation and closure) to a **logs** channel. + +## Setup + +1. Install dependencies: + + ```sh + npm install + ``` + +2. Copy `.env.example` to `.env` and fill in the values: + + ``` + DISCORD_CLIENT_ID= + DISCORD_BOT_TOKEN= + ``` + +3. Run the bot: + + ```sh + npm start + ``` + + During development, use `npm run dev` (or `npm run dev:watch` to restart on file changes) to load the `.env` file automatically. + +## Deployment + +A `Dockerfile` is provided to build and run the bot in a container: + +```sh +docker build -t 174bg-discord-bot . +docker run --env-file .env 174bg-discord-bot +``` -- cgit v1.2.3