Fixed first database creation, added default values for some get's
This commit is contained in:
@@ -6,7 +6,7 @@ from bot.utils.cooldown import throttle
|
||||
|
||||
@throttle(5)
|
||||
async def on_off_call(message: types.Message, is_command=None):
|
||||
if message.from_id not in db[DBTables.config].get('admins') and message.from_id != ADMIN:
|
||||
if message.from_id not in db[DBTables.config].get('admins', []) and message.from_id != ADMIN:
|
||||
await message.reply('❌ You are not permitted to do that. '
|
||||
'It is only for this bot instance maintainers and admins')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user