How hridhaan086833/hp-bot works
HP Bot is a single-file discord.py server bot. Discord users invoke commands and interactive components; the bot handles support, moderation/security, community workflows, economy/games, and utility features, persisting configured and activity state in SQLite. The README documents Gemini and Safe Browsing integrations. The source excerpt confirms selected ticket, suggestion, and message-handling behavior, but most feature implementations and their exact wiring were not sampled.
Main entry points: Bottrial.py HP Bot
Components 17
Bot Runtime
- HP Bot
Bottrial.py - Health metrics
Bottrial.py - SQLite database
Support & Moderation
- Ticket workflow
Bottrial.py - Moderation & audit
Bottrial.py - Anti-nuke security
Bottrial.py - Deleted-message logs
Bottrial.py
Community Features
- Suggestions & confessions
Bottrial.py - Giveaways
Bottrial.py - Welcome & roles
Bottrial.py - Media & counting
Bottrial.py
Economy & Games
- Economy & leveling
Bottrial.py - Minigames
Bottrial.py
Integrations
- Google Gemini
- Safe Browsing
Other components
- Discord users
- Discord platform
Connections 21
- Discord users → Discord platform: invoke commands
- Discord platform → HP Bot: deliver interactions
- HP Bot → Ticket workflow: handle tickets
- HP Bot → Moderation & audit: handle moderation
- HP Bot → Anti-nuke security: monitor actions
- HP Bot → Deleted-message logs: handle messages
- HP Bot → Suggestions & confessions: handle submissions
- HP Bot → Giveaways: handle giveaways
- HP Bot → Welcome & roles: handle setup
- HP Bot → Media & counting: handle messages
- HP Bot → Economy & leveling: handle commands
- HP Bot → Minigames: handle games
- HP Bot → Health metrics: serve diagnostics
- Ticket workflow → SQLite database: read and write
- Suggestions & confessions → SQLite database: read and write
- Deleted-message logs → SQLite database: store deleted messages
- Economy & leveling → SQLite database: store balances and XP
- Giveaways → SQLite database: store entries
- Anti-nuke security → SQLite database: store settings and history
- HP Bot → Google Gemini: ask questions
- Media & counting → Safe Browsing: scan URLs