Skip to content

Commit

Permalink
temporary fix triggering the incoming handlers to reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Jan 23, 2022
1 parent eb69b8b commit f4af09a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions userge/core/types/raw/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def parse(cls, command: str, # pylint: disable=arguments-differ
and not m.scheduled
and not (m.forward_from or m.forward_sender_name)
and m.from_user and m.text
and not m.edit_date
and ((m.from_user.id in Config.OWNER_ID)
or (Config.SUDO_ENABLED and (m.from_user.id in Config.SUDO_USERS)
and (cname.lstrip(trigger) in Config.ALLOWED_COMMANDS)))
Expand Down
3 changes: 1 addition & 2 deletions userge/plugins/tools/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@


@userge.on_cmd("ping", about={
'header': "check how long it takes to ping your userbot",
'flags': {'-a': "average ping"}}, group=-1)
'header': "check how long it takes to ping your userbot"}, group=-1)
async def pingme(message: Message):
start = datetime.now()
await message.client.send(Ping(ping_id=0))
Expand Down

0 comments on commit f4af09a

Please sign in to comment.