Files
ninachloe/FaustBot/Modules/PingAnswerObserver.py
2022-03-31 15:21:47 +02:00

22 lines
497 B
Python

from FaustBot.Communication.Connection import Connection
from FaustBot.Modules.PingObserverPrototype import PingObserverPrototype
class ModulePing(PingObserverPrototype):
"""
A Class only reacting to pings
"""
@staticmethod
def cmd():
return None
@staticmethod
def help():
return None
def update_on_ping(self, data, connection: Connection):
# print('Module Ping')
msg = 'PONG ' + data['server']
connection.raw_send(msg)