Main now exists after migration
This commit is contained in:
parent
d47239899a
commit
ee8a92ad3a
10
main.py
10
main.py
@ -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:
|
||||
|
Reference in New Issue
Block a user