LBTRD-discord-bot/README.md

34 lines
749 B
Markdown
Raw Normal View History

2026-06-04 15:58:20 +02:00
# lbtrd-bot
A Discord bot that watches messages and warns in-channel when user `541298246971162636` posts a link.
## Setup
1. Install dependencies:
```bash
npm install
```
2. Copy `.env.example` to `.env` and set `DISCORD_TOKEN`.
3. Invite the bot with the `Message Content Intent` enabled in the Discord Developer Portal.
4. Start the bot:
```bash
npm start
```
## Docker
Start the bot in a container with:
```bash
docker compose up --build
```
The Compose setup reads `DISCORD_TOKEN` from `.env`.
## Behavior
- Listens to all message events the bot can see.
- Ignores messages from bots.
- Checks only messages from user `541298246971162636`.
- Sends a warning message in the same channel when a link is detected.