# Path: txircd/modbase.py
# class Command(object):
#     def hook(self, base):
#         self.ircd = base
#         return self
#     def onUse(self, user, data):
#         pass
#     def processParams(self, user, params):
#         return {
#             "user": user,
#             "params": params
#         }
#     def updateActivity(self, user):
#         user.lastactivity = now()
# 
# Path: txircd/utils.py
# def now():
#     return datetime.datetime.utcnow().replace(microsecond=0)


from txircd.modbase import Command
from txircd.utils import now

class PongCommand(Command):
    def onUse(self, user, data):
        user.lastpong = now()
    

# Path: txircd/modbase.py
# class Command(object):
#     def hook(self, base):
#         self.ircd = base
#         return self
#     def onUse(self, user, data):
#         pass
#     def processParams(self, user, params):
#         return {
#             "user": user,
#             "params": params
#         }
#     def updateActivity(self, user):
#         user.lastactivity = now()
# 
# Path: txircd/utils.py
# def now():
#     return datetime.datetime.utcnow().replace(microsecond=0)


# Path: txircd/modules/cmd_pong.py
from txircd.modbase import Command
from txircd.utils import now


class PongCommand(Command):
    def onUse(self, user, data):
        user.lastpong = now()
    

    def updateActivity(self, user):