[Core] Added --dry-run flag and Travis CI boot test

This should help testing the boot process right until login
This commit is contained in:
Twentysix
2016-12-22 18:54:27 +01:00
parent 6f068191f1
commit c7284ffa2a
3 changed files with 11 additions and 0 deletions

4
red.py
View File

@@ -528,6 +528,10 @@ def main(bot):
interactive_setup(bot.settings)
load_cogs(bot)
if bot.settings._dry_run:
print("Quitting: dry run")
exit(0)
print("Logging into Discord...")
bot.uptime = datetime.datetime.utcnow()