Files
ninachloe/FaustBot/Modules/PartyObserver.py
T
ThomasWeis acad253dad Update help descriptions, fixed typos
Minor changes to messages returned by the help command
2022-04-24 09:58:33 +02:00

18 lines
567 B
Python

from FaustBot.Communication import Connection
from FaustBot.Modules.PrivMsgObserverPrototype import PrivMsgObserverPrototype
class PartyObserver(PrivMsgObserverPrototype):
@staticmethod
def cmd():
return [".party"]
@staticmethod
def help():
return ".party - bringt Stimmung in den Chat"
def update_on_priv_msg(self, data: dict, connection: Connection):
if data['message'].find('.party') == -1:
return
connection.send_back('\001ACTION schmeißt mit Konfetti aus buntem Esspapier um sich.\001', data)