Skip to content

Commit d8fe2a0

Browse files
committed
Fix proper headless checks. Bot now confirmed running without ttkbootstrap installed. Related to issue #19
1 parent 6f7edce commit d8fe2a0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ghost.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787

8888
@ghost.event
8989
async def on_connect():
90-
if gui: gui.bot_started = True
90+
if not headless:
91+
if gui: gui.bot_started = True
9192
ghost.start_time = time.time()
9293

9394
await ghost.add_cog(ghost_commands.Account(ghost))
@@ -159,9 +160,10 @@ async def on_command_error(ctx, error):
159160
# cfg.save()
160161

161162
try:
162-
if gui and not headless:
163+
if not headless:
163164
gui.run()
164165
else:
166+
console.print_info("Starting Ghost in headless mode...")
165167
ghost.run(token, log_handler=console.handler)
166168
except Exception as e:
167169
console.print_error(str(e))

0 commit comments

Comments
 (0)