mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-10 22:26:23 +02:00
22 lines
497 B
Python
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)
|