Fix issues

This commit is contained in:
root
2025-10-12 10:47:58 +02:00
commit ddb5412b91
35 changed files with 2370 additions and 0 deletions

48
README.md Normal file
View File

@@ -0,0 +1,48 @@
## Civita Discord Bot
Modular Discord.js v14 bot with MariaDB storage, Gemini AI, profanity filter, XP system, and slash commands.
### Requirements
- Node.js 18.17+
- pnpm 8+
- MariaDB 10.5+
### Environment
Create a `.env` file in the project root with:
```
DISCORD_TOKEN=
DISCORD_CLIENT_ID=
GEMINI_API_KEY=
DATABASE_HOST=127.0.0.1
DATABASE_PORT=3306
DATABASE_USER=root
DATABASE_PASSWORD=changeme
DATABASE_NAME=civita
```
### Install
```bash
pnpm install
```
### Deploy Commands
```bash
pnpm deploy
```
### Run (dev)
```bash
pnpm dev
```
### Features
- `/setup` to enable/disable: moderation, ai, logs, qotd, profanity_filter
- `/leaderboard`, `/profile`
- `/ban`, `/kick`, `/timeout`
- Profanity filter (toggle via `/setup`)
- Bot answers when mentioned if AI enabled
- Daily QOTD if enabled and channel set
- Status updates to: watching (N) servers