mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
feat: add interactive presence command for bot status management
- Implemented a new `/presence` command allowing users to configure the bot's presence with an interactive panel. - Added localization support for Spanish and French languages. - Integrated PostgreSQL for storing and retrieving bot presence states. - Created a Dockerfile and docker-compose configuration for easy deployment. - Updated environment configuration to include database connection settings. - Refactored command handling to include the new presence command. - Enhanced error handling and user feedback for the presence command interactions.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
DATABASE_URL: postgresql://${POSTGRES_USER:-discord}:${POSTGRES_PASSWORD:-discord}@postgres:5432/${POSTGRES_DB:-discord_bots}
|
||||
DATABASE_SSL: "false"
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-discord_bots}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-discord}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-discord}
|
||||
ports:
|
||||
- "${POSTGRES_PORT:-5432}:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-discord} -d ${POSTGRES_DB:-discord_bots}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user