add help command
This commit is contained in:
parent
dc1e0d42af
commit
6b3a3853c3
12
functions.py
12
functions.py
@ -1,5 +1,9 @@
|
||||
def processmsg(msg, rcpt):
|
||||
if msg.startswith("!"):
|
||||
return ""
|
||||
elif "youtube.com/watch" in msg:
|
||||
return msg.replace("youtube.com", "iv.datura.network")
|
||||
if msg.startswith("!"):
|
||||
return command(msg, rcpt)
|
||||
elif "youtube.com/watch" in msg:
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user