add /help message
This commit is contained in:
parent
fb621074d0
commit
d548ebf3b8
|
@ -68,6 +68,16 @@ def store_file(msg: deltachat.Message):
|
|||
msg.chat.set_ephemeral_timer(timer)
|
||||
|
||||
|
||||
def send_help(msg: deltachat.Message):
|
||||
"""Reply to the user with a help message."""
|
||||
help_text = """
|
||||
/start\tStart getting daily reminders.
|
||||
/stop\tStop getting daily reminders.
|
||||
/file\t(with an attachment) Add a list of entries which I can remind you of at specific dates.
|
||||
"""
|
||||
reply(msg.chat, help_text, quote=msg)
|
||||
|
||||
|
||||
def reply(
|
||||
chat: deltachat.Chat,
|
||||
text: str,
|
||||
|
|
|
@ -2,7 +2,7 @@ import time
|
|||
|
||||
import deltachat
|
||||
|
||||
from remember_remember_bot.commands import remind_chat, activate_chat, reply, store_file
|
||||
from remember_remember_bot.commands import remind_chat, activate_chat, reply, store_file, send_help
|
||||
from remember_remember_bot.util import check_new_day, update_day
|
||||
|
||||
|
||||
|
@ -30,4 +30,6 @@ def handle_incoming_message(msg: deltachat.Message):
|
|||
store_file(msg)
|
||||
else:
|
||||
activate_chat(msg)
|
||||
else:
|
||||
send_help(msg)
|
||||
msg.mark_seen()
|
||||
|
|
Loading…
Reference in a new issue