Skip to content

Packages implemented

Compare
Choose a tag to compare
@wrussell1999 wrussell1999 released this 31 May 01:20
· 123 commits to master since this release

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.