2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 14:38:04 +00:00

stuff and things and stuff

This commit is contained in:
Nick80835
2020-08-24 17:02:08 -04:00
parent b16bdbb366
commit cad3d8005a
4 changed files with 43 additions and 39 deletions

View File

@@ -79,10 +79,14 @@ async def bot_repo(event):
async def disable_command(event):
if event.args:
for value in ldr.help_dict.values():
for info in [i[0] for i in value]:
if event.args == info:
await event.reply(f"Disabling **{info}** in chat **{event.chat.id}**!")
ldr.db.disable_command(event.chat.id, info)
for info in value:
if event.args == info[0]:
if info[2]:
await event.reply(f"**{info[0]}** cannot be disabled!")
return
await event.reply(f"Disabling **{info[0]}** in chat **{event.chat.id}**!")
ldr.db.disable_command(event.chat.id, info[0])
return
await event.reply(f"**{event.args}** is not a command!")