mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-10 22:26:23 +02:00
Initalize repo
This commit is contained in:
21
FaustBot/Modules/PingAnswerObserver.py
Normal file
21
FaustBot/Modules/PingAnswerObserver.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user