documentation
This commit is contained in:
parent
82b5b8c7a8
commit
58736954d1
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user