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

19 lines
651 B
Python

from FaustBot.Communication import Connection
from FaustBot.Modules.PrivMsgObserverPrototype import PrivMsgObserverPrototype
class LoveAndPeaceObserver(PrivMsgObserverPrototype):
@staticmethod
def cmd():
return [".peace"]
@staticmethod
def help():
return ".peace - sorgt für Frieden"
def update_on_priv_msg(self, data: dict, connection: Connection):
if data['message'].find('.peace') == -1:
return
connection.send_back('\001ACTION hüpft durch den Raum, schmeißt Blumen um sich und singt: \"Love and '
'Peace, wir haben uns alle lieb..!\".\001', data)