Main now exists after migration

This commit is contained in:
Profitroll 2024-05-26 15:02:44 +02:00
parent d47239899a
commit ee8a92ad3a
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

10
main.py
View File

@ -46,15 +46,17 @@ with contextlib.suppress(ImportError):
def main():
# Remove if no database is being used
if args.migrate:
migrate_database()
logger.info("Migration finished. Exiting...")
exit()
client = PyroClient(
scheduler=scheduler, commands_source=sync.json_read(Path("commands.json"))
)
# Conversation(client)
# Remove if no database is being used
if args.migrate:
migrate_database()
try:
client.run()
except KeyboardInterrupt: