add help command

This commit is contained in:
fram3d 2024-02-06 01:03:54 +01:00
parent dc1e0d42af
commit 6b3a3853c3
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
1 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,9 @@
def processmsg(msg, rcpt): def processmsg(msg, rcpt):
if msg.startswith("!"): if msg.startswith("!"):
return "" return command(msg, rcpt)
elif "youtube.com/watch" in msg: elif "youtube.com/watch" in msg:
return msg.replace("youtube.com", "iv.datura.network") return msg.replace("youtube.com", "iv.datura.network")
def command(msg, rcpt):
if msg.startswith("!help"):
return "chatbot commands: \n" + "!help Show this help page"