How tyr4/bot works
This repository is a Discord bot for Days Bygone game utilities and community features. Users invoke commands or interact with message components; the bot responds with calculations, wiki and spreadsheet help, deal information, image output, and community utilities. The principal path is Discord interaction → bot bootstrap and loaded cogs → feature-specific processing → Discord response, with some commands recording usage in wrapped.json. Several modules are only identified by the tree or SOURCE INDEX, so their internal behavior and unshown links are not inferred.
Main entry points: wrapped.py Usage tracking · main.py Bot bootstrap · void_deals.py Deal commands · formulas.py Game calculators
Components 18
Bot runtime
- Bot bootstrap
main.py - Command extensions
chestii - Usage tracking
chestii/wrapped.py
Game utilities
- Game calculators
chestii/formulas.py - Mob formulas
utils/mob_formula.py - Sheet links
chestii/sheet.py - Wiki helper
chestii/wiki_commands.py - Sheet updates
chestii/sheetupdate.py
Community features
- Fun commands
chestii/fun.py - Community events
chestii/funni.py - Rage commands
chestii/rage.py - Jail features
chestii/jail.py - Blackjack
chestii/blackjack.py - Trol commands
chestii/trol.py - Shopping list
chestii/shopping_list.py
Void deals
- Deal commands
chestii/void_deals.py - Deal image rendering
void_deals_image_gen/image_gen.py
Other components
- Discord user
Connections 14
- Discord user → Bot bootstrap: invokes commands
main.py - Bot bootstrap → Command extensions: loads extensions
main.py - Bot bootstrap → Shopping list: registers view
main.py - Bot bootstrap → Deal commands: registers view
main.py - Game calculators → Mob formulas: uses formulas
chestii/formulas.py - Game calculators → Usage tracking: records usage
chestii/formulas.py - Sheet links → Usage tracking: records usage
chestii/sheet.py - Wiki helper → Sheet links: uses sheet links
chestii/wiki_commands.py - Wiki helper → Usage tracking: records usage
chestii/wiki_commands.py - Fun commands → Usage tracking: records usage
chestii/fun.py - Community events → Usage tracking: records usage
chestii/funni.py - Community events → Deal commands: uses deal features
chestii/funni.py - Deal commands → Deal image rendering: uses image generator
chestii/void_deals.py - Deal image rendering → Deal commands: gets deal data
void_deals_image_gen/image_gen.py