Compare commits
2 Commits
08f958ff1e
...
a8b9850be5
Author | SHA1 | Date | |
---|---|---|---|
a8b9850be5 | |||
6b3a3853c3 |
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user