We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f7edce commit d8fe2a0Copy full SHA for d8fe2a0
1 file changed
ghost.py
@@ -87,7 +87,8 @@
87
88
@ghost.event
89
async def on_connect():
90
- if gui: gui.bot_started = True
+ if not headless:
91
+ if gui: gui.bot_started = True
92
ghost.start_time = time.time()
93
94
await ghost.add_cog(ghost_commands.Account(ghost))
@@ -159,9 +160,10 @@ async def on_command_error(ctx, error):
159
160
# cfg.save()
161
162
try:
- if gui and not headless:
163
164
gui.run()
165
else:
166
+ console.print_info("Starting Ghost in headless mode...")
167
ghost.run(token, log_handler=console.handler)
168
except Exception as e:
169
console.print_error(str(e))
0 commit comments