Packages implemented
Packages implemented to improve readability. Also fixed an error with disqualifying the winner if they didn't vote.
New structure:
βββ config
βΒ Β βββ config.json
βββ data
βΒ Β βββ daily_data.json
βΒ Β βββ foodflex.log
βΒ Β βββ quotes.json
βΒ Β βββ scoreboard.json
βββ foodflex
βΒ Β βββ foodflex.py
βΒ Β βββ __init__.py
βΒ Β βββ __main__.py
βΒ Β βββ periods
βΒ Β βΒ Β βββ messages.py
βΒ Β βΒ Β βββ results.py
βΒ Β βΒ Β βββ scoreboard.py
βΒ Β βΒ Β βββ submissions.py
βΒ Β βΒ Β βββ voting.py
βΒ Β βββ util
βΒ Β βββ config.py
βΒ Β βββ data.py
βΒ Β βββ flex_commands.py
βΒ Β βββ setup_period.py
βββ LICENSE
βββ README.md
With the introduction of packages, the way to run the bot has changed.
Before
python3 main.py
After
python3 -m foodflex
I've also implemented the use of a virtual environment. Instructions can be found in the README.