chatbot/functions.py
2024-02-06 01:03:54 +01:00

10 lines
317 B
Python

def processmsg(msg, rcpt):
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"