How tarbot-oss/tarveri-bot works
TARVeri is a Discord bot for student and guest verification. Its main user journey runs from Discord commands or interactive views through student-ID verification and optional email OTP, then role assignment and persisted identity state; guest referrals instead proceed through ticket review. The repository also documents campus cards, random tags, administration, lifecycle expiry, and operational monitoring. Edges are limited to relationships shown in excerpts, the source index, or README; several subsystem internals were not sampled.
Main entry points: bot.py Bot assembly · verification_cog.py Student commands · verification_service.py Identity lifecycle · guest_cog.py Guest commands
Components 27
Bot runtime
- Bot assembly
tarveri/bot.py - Settings and ID parsing
tarveri/config.py
Discord workflows
- Student commands
tarveri/cogs/verification_cog.py - Verification views
tarveri/views/verification_views.py - Guest commands
tarveri/cogs/guest_cog.py - Guest views
tarveri/views/guest_views.py - Admin commands
tarveri/cogs/admin_cog.py - Admin dashboard
tarveri/cogs/admin_dashboard.py - Campus card commands
tarveri/cogs/card_cog.py - Random tag commands
tarveri/cogs/random_tag_cog.py
Verification services
- Identity lifecycle
tarveri/services/verification_service.py - Rate limiter
tarveri/rate_limiter.py - OTP email
tarveri/services/email_service.py - Referral tickets
tarveri/services/guest_service.py - Card rendering
tarveri/services/card_service.py - Random tag service
tarveri/services/random_tag_service.py - Email retry queue
tarveri/services/dead_letter_service.py
Persistence
- SQLite database
tarveri/database.py - Domain repositories
tarveri/db
Operations
- Graduation watchdog
tarveri/services/graduation_watchdog_service.py - Uptime monitor
tarveri/services/uptime_service.py - Outage monitor
tarveri/services/outage_service.py - Update checker
tarveri/services/update_checker.py - Audit logging
tarveri/services/log_service.py
Other components
- Discord user
- Discord platform
- SMTP relays
Connections 31
- Discord user → Discord platform: interacts with
- Discord platform → Student commands: dispatches commands
- Discord platform → Guest commands: dispatches commands
- Discord platform → Admin commands: dispatches commands
- Bot assembly → Student commands: registers
tarveri/bot.py - Bot assembly → Guest commands: registers
tarveri/bot.py - Bot assembly → Admin commands: registers
tarveri/bot.py - Bot assembly → Campus card commands: registers
tarveri/bot.py - Bot assembly → Random tag commands: registers
tarveri/bot.py - Student commands → Identity lifecycle: requests verification
tarveri/cogs/verification_cog.py - Student commands → Rate limiter: checks attempts
tarveri/cogs/verification_cog.py - Student commands → Verification views: presents
tarveri/cogs/verification_cog.py - Identity lifecycle → OTP email: initiates OTP
- OTP email → SMTP relays: sends OTP
- OTP email → Email retry queue: queues failed mail
tarveri/services/dead_letter_service.py - Guest commands → Referral tickets: runs referral workflow
tarveri/cogs/guest_cog.py - Guest commands → Guest views: presents
tarveri/cogs/guest_cog.py - Referral tickets → Identity lifecycle: checks referrers
- Admin commands → Admin dashboard: opens
tarveri/cogs/admin_cog.py - Campus card commands → Card rendering: requests card
tarveri/cogs/card_cog.py - Random tag commands → Random tag service: requests tags
tarveri/cogs/random_tag_cog.py - Identity lifecycle → SQLite database: reads and writes
tarveri/services/verification_service.py - Referral tickets → SQLite database: reads and writes tickets
tarveri/services/guest_service.py - SQLite database → Domain repositories: uses repositories
tarveri/database.py - Bot assembly → Graduation watchdog: starts
tarveri/bot.py - Bot assembly → Uptime monitor: starts
tarveri/bot.py - Bot assembly → Outage monitor: starts
tarveri/bot.py - Graduation watchdog → Identity lifecycle: resolves expiry
tarveri/services/graduation_watchdog_service.py - Admin dashboard → Uptime monitor: shows metrics
tarveri/cogs/admin_dashboard.py - Bot assembly → Update checker: configures
tarveri/bot.py - Audit logging → SQLite database: writes audit events