Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/uaudith/Userge
Browse files Browse the repository at this point in the history
  • Loading branch information
rking32 committed Mar 16, 2020
2 parents 8f6886f + f9904fc commit c3dff89
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Userge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
datefmt='%d-%b-%y %H:%M:%S'
)

log = logging.getLogger(__name__)
log = logging.getLogger(__name__)
userge = None # userge is the client name
12 changes: 12 additions & 0 deletions Userge/plugins/ping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from datetime import datetime
from Userge import userge
from pyrogram import Filters, Message


@userge.on_message(Filters.command("ping", ".") & Filters.me)
def pingme(_, message: Message):
start = datetime.now()
message.edit('`Pong!`')
end = datetime.now()
ms = (end - start).microseconds / 1000
message.edit(f"**Pong!**\n`{ms} ms`")
Binary file modified resources/userge(8).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c3dff89

Please sign in to comment.