Drag commited on
Commit
9a5da4b
·
1 Parent(s): f0399d3

Update custom_filters.py

Browse files
Files changed (1) hide show
  1. Mikobot/utils/custom_filters.py +3 -3
Mikobot/utils/custom_filters.py CHANGED
@@ -49,15 +49,15 @@ def command(
49
 
50
  if owner_cmd and (m.from_user.id != OWNER_ID):
51
  # Only owner allowed to use this...!
52
- return False
53
 
54
  if dev_cmd and (m.from_user.id not in DEV_LEVEL):
55
  # Only devs allowed to use this...!
56
- return False
57
 
58
  if sudo_cmd and (m.from_user.id not in SUDO_LEVEL):
59
  # Only sudos and above allowed to use it
60
- return False
61
 
62
  text: str = m.text or m.caption
63
  if not text:
 
49
 
50
  if owner_cmd and (m.from_user.id != OWNER_ID):
51
  # Only owner allowed to use this...!
52
+ return true
53
 
54
  if dev_cmd and (m.from_user.id not in DEV_LEVEL):
55
  # Only devs allowed to use this...!
56
+ return true
57
 
58
  if sudo_cmd and (m.from_user.id not in SUDO_LEVEL):
59
  # Only sudos and above allowed to use it
60
+ return true
61
 
62
  text: str = m.text or m.caption
63
  if not text: