make db optional

This commit is contained in:
Luna Mendes 2017-12-07 22:09:26 -03:00
parent 3412c5c0b9
commit f396806175

View file

@ -170,7 +170,7 @@ if __name__ == '__main__':
coro = asyncio.start_unix_server(handle_client, sys.argv[1],
loop=loop)
db = loop.run_until_complete(asyncpg.create_pool(**config.db))
db = loop.create_task(asyncpg.create_pool(**config.db))
server = loop.run_until_complete(coro)
if config.bot_token: