MikaLendingBot
MikaLendingBot copied to clipboard
Autoupdate using git
Description
- When ran using the
-upargument, will perform a git pull before starting the bot normally. - Tried to be user friendly with error messages.
- Didn't want to reinvent the wheel, so let git pull decide when an update is needed.
- Requires you to restart the bot to update (using cron or manually)
- [ ] Need to add new arg to docs
Thoughts?:
- [ ] Can probably be changed to autorestart self once per time frame?
- [ ] Allow usage through config instead of arg?? (Config is for accounts imo, args are for the software)
#314
TESTING STAGE
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] I have read CONTRIBUTING.md
- [x] I fully understand Github Flow.
- [x] My code adheres to the code style of this project.
- [ ] I have updated the documentation in /docs if I have changed the config, arguments, logic in how the bot works, or anything that understandably needs a documentation change.
- [ ] I have updated the config file accordingly if my change requires a new configuration setting or changes an existing one.
- [ ] I have tested the bot with no issues for 24 continuous hours. If issues were experienced, they have been patched and tested again.
I'm not sure if this should be solve as part of the bot code. For example for my setup it wouldn't work as I'm redirecting the outputs and the new cmd will not take those output settings I think.
I also already have autoupdating built into my cron job... This is honestly just a solution for those who don't have advanced setups, still allows users to update another way.