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():
|
def main():
|
||||||
|
# Remove if no database is being used
|
||||||
|
if args.migrate:
|
||||||
|
migrate_database()
|
||||||
|
logger.info("Migration finished. Exiting...")
|
||||||
|
exit()
|
||||||
|
|
||||||
client = PyroClient(
|
client = PyroClient(
|
||||||
scheduler=scheduler, commands_source=sync.json_read(Path("commands.json"))
|
scheduler=scheduler, commands_source=sync.json_read(Path("commands.json"))
|
||||||
)
|
)
|
||||||
# Conversation(client)
|
# Conversation(client)
|
||||||
|
|
||||||
# Remove if no database is being used
|
|
||||||
if args.migrate:
|
|
||||||
migrate_database()
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client.run()
|
client.run()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
Reference in New Issue
Block a user