Initalize repo

This commit is contained in:
BaerbelBox
2022-03-31 15:21:47 +02:00
parent 557f3e9b31
commit 7cf65ef092
98 changed files with 15860 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from FaustBot.Communication import Connection
from FaustBot.Modules.PrivMsgObserverPrototype import PrivMsgObserverPrototype
class FreeHugsObserver(PrivMsgObserverPrototype):
@staticmethod
def cmd():
return [".hug"]
@staticmethod
def help():
return ".hug - verteilt Umarmungen"
def update_on_priv_msg(self, data: dict, connection: Connection):
if data['message'].find('.hug') == -1:
return
connection.send_back('\001ACTION knuddelt ' + data['nick'] + '.\001', data)