Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
9f9c49d
1
Parent(s):
ae9d2fa
Update custom_filters.py
Browse files
Powers/utils/custom_filters.py
CHANGED
|
@@ -67,12 +67,6 @@ def command(
|
|
| 67 |
if matches.group(1) not in flt.commands:
|
| 68 |
return False
|
| 69 |
if m.chat.type == "supergroup":
|
| 70 |
-
try:
|
| 71 |
-
disable_list = DISABLED_CMDS[m.chat.id].get("commands", [])
|
| 72 |
-
status = str(DISABLED_CMDS[m.chat.id].get("action", "none"))
|
| 73 |
-
except KeyError:
|
| 74 |
-
disable_list = []
|
| 75 |
-
status = "none"
|
| 76 |
try:
|
| 77 |
user_status = (await m.chat.get_member(m.from_user.id)).status
|
| 78 |
except UserNotParticipant:
|
|
|
|
| 67 |
if matches.group(1) not in flt.commands:
|
| 68 |
return False
|
| 69 |
if m.chat.type == "supergroup":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
try:
|
| 71 |
user_status = (await m.chat.get_member(m.from_user.id)).status
|
| 72 |
except UserNotParticipant:
|