Fixed first database creation, added default values for some get's
This commit is contained in:
1 parent
5f079c5246
commit
c332dc4d21
13 files changed
+33
-32
No files matched your search
@@ -4,6 +4,8 @@ from bot.db import db, DBTables, decrypt
|
||||
|
||||
async def ping():
|
||||
endpoint = decrypt(db[DBTables.config].get('endpoint'))
|
||||
if endpoint is None:
|
||||
return False
|
||||
try:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
r = await session.head(endpoint)
|
||||
|
||||
Reference in new issue
Block a user