Compare commits

...

2 Commits

Author SHA1 Message Date
a8b9850be5 Merge branch 'master' of ssh://gitea.dmz.rs:2222/Decentrala/chatbot 2024-02-06 01:05:09 +01:00
6b3a3853c3
add help command 2024-02-06 01:03:54 +01:00

View File

@ -1,5 +1,9 @@
def processmsg(msg, rcpt):
if msg.startswith("!"):
return ""
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"