documentation

This commit is contained in:
Oliver Hartmann 2021-03-14 14:10:45 +01:00
parent 82b5b8c7a8
commit 58736954d1

View File

@ -23,12 +23,12 @@ def send_to(user: str, text: str) -> None:
def send_to_format(type: str, message: data.Message, conf: dict()) -> None:
"""[summary]
"""Send a message defined in the conf dict to a user
Args:
type (str): [description]
message (data.Message): [description]
conf (dict): [description]
type (str): The type of message. This is defined in conf['Chat'].
message (data.Message): Message data. Placeholders in the message type will be replaced with this data.
conf (dict): Configution dictionary where the messages are stored.
"""
text = conf['Chat'][type].format(message=message.message,
date=message.date,