1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
royalnet/royalpack/events/pong.py

12 lines
241 B
Python
Raw Normal View History

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