33 lines
749 B
Markdown
33 lines
749 B
Markdown
# 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.
|