https://github.com/redbluebird/adventure-bot
https://github.com/redbluebird/adventure-bot
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/redbluebird/adventure-bot
- Owner: RedBlueBird
- License: apache-2.0
- Created: 2022-12-31T01:07:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T18:13:08.000Z (almost 2 years ago)
- Last Synced: 2024-09-06T01:59:20.194Z (almost 2 years ago)
- Language: Python
- Size: 2.23 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# adventure bot!
it's adventurin' time
## project structure
### `cogs`
this contains the actual logic of the bot, and all of these are loaded in accordingly
you can run `a.help` when the bot is running to see all of the available commands
### `db`
contains the orm and the connection settings
`lock.py` makes sure a player isn't, say, upgrading a card while going on an adventure,
it helps prevent things from going out of sync
### `resources`
this both contains the json, images, and fonts the bot uses
as well as the python code required to load/validate some of them w/ pydantic
it also has `json_loader`, which streamlines loading json from `resources/json`
### `helpers`
this one has a ton of stuff
* `battle` contains all the classes need to simulate a battle- we're currently
renovating that with new game mechanics and everything, so it probably won't work for a very long time
* `util` is just a ton of utility functions
* `checks` contains all the checks that are used for commands, like if a player is high enough level or whatever
### `views`
this one contains all the ui elements
`adventure` is for the adventure part of the game, `battle` is for battling, all the others are general-use