Jared Vititoe 715d778080 Clean up issue comments, remove dead code, fix audit logger bugs
- Remove all 15 "Issue #XX" reference comments from production code
- Remove dead code: CooldownManager class (unused, using discord.py cooldown),
  is_owner() function (unreferenced), unused imports (datetime_time, get)
- Remove unused env vars: ANNOUNCEMENT_CHANNEL_ID, PELICAN_URL, HYTALE_SERVER_UUID
- Fix AuditLogger.flush() dropping items when queue > 10 (now processes in batches)
- Fix AuditLogger.log() using .seconds instead of .total_seconds() (broke after 1+ days)
- Use unicode escapes for emoji in poll reactions for consistency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 20:49:55 -05:00

Lotus Discord Bot

Discord bot for the Lotus Guild server with auto-deployment from Gitea.

Features

  • Daily adjective posting
  • Minecraft server whitelist management
  • Custom LLM integration (Lotus LLM)
  • Fun commands (8ball, fortune, dice, etc.)
  • Game-specific commands (Valorant agents, LoL champions)
  • Server audit logging
  • Reaction roles

Auto-Deployment Setup

The bot automatically deploys when code is pushed to Gitea.

Deployment Components

  1. Webhook Listener: Runs on port 9000 on the production server
  2. Deployment Script: /usr/local/bin/discord_bot_deploy.sh
  3. Service: discord.service runs the bot

Webhook Configuration

  • Endpoint: http://10.10.10.6:9000/hooks/discord-bot-deploy
  • Secret: discord-bot-secret
  • Header: X-Gitea-Signature

Manual Deployment

If needed, you can manually trigger deployment:

ssh root@10.10.10.6
/usr/local/bin/discord_bot_deploy.sh

Production Server

  • Host: 10.10.10.6
  • Bot Directory: /mnt/discordBot/
  • Service: discord.service
  • User: jared

Local Development

The bot requires:

  • Python 3
  • discord.py
  • python-dotenv
  • aiohttp
  • mcrcon

Environment variables in .env:

  • DISCORD_TOKEN

Commands

Run /help in Discord to see all available commands.

Description
Discord bot for the Lotus Guild server with auto-deployment from Gitea.
Readme 182 KiB
Languages
Python 97.5%
Shell 2.5%