1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00
royalnet/royalpack/events/pong.py

12 lines
241 B
Python
Raw Normal View History

2020-07-01 00:11:14 +02:00
from typing import *
import royalnet
import royalnet.commands as rc
2020-07-01 16:47:30 +02:00
import datetime
2020-07-01 00:11:14 +02:00
class PongEvent(rc.Event):
name = "pong"
async def run(self, **kwargs) -> dict:
2020-07-01 16:47:30 +02:00
return {"timestamp": datetime.datetime.now().timestamp()}