Maubot restoU update

This commit is contained in:
Brieuc Dubois 2024-01-23 00:35:27 +01:00
parent 0131b4fe9a
commit 21a476c479
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ class UCLouvainRestoUBot(Plugin):
# Highly inspired by https://github.com/maubot/echo # Highly inspired by https://github.com/maubot/echo
@command.new("ping", help="Ping") @command.new("ping", help="Ping")
async def ping_handler(self, evt: MessageEvent, message: str = "") -> None: async def ping_handler(self, evt: MessageEvent, message: str = "") -> None:
print('PING')
diff = int(time() * 1000) - evt.timestamp diff = int(time() * 1000) - evt.timestamp
content = TextMessageEventContent( content = TextMessageEventContent(

View File

@ -1,6 +1,6 @@
maubot: 0.1.0 maubot: 0.1.0
id: com.bhasher.uclouvainrestou id: com.bhasher.uclouvainrestou
version: 0.0.1 version: 0.0.2
license: MIT license: MIT
modules: modules:
- main - main