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