Compare commits
5 Commits
scraper_fu
...
0813460e8b
Author | SHA1 | Date | |
---|---|---|---|
0813460e8b | |||
4ca01a868d | |||
1795a87c4b
|
|||
9704474c29 | |||
5b4ae05582 |
@@ -5,7 +5,8 @@ def processmsg(msg, rcpt):
|
||||
if "youtube.com/watch" in msg:
|
||||
return msg.replace("youtube.com", "iv.datura.network")
|
||||
elif msg.startswith("!wiki"):
|
||||
return sf.query_external_website("https://en.wikipedia.org/wiki/", msg.split(" ")[1])
|
||||
cmd, query = msg.split(" ", 1)
|
||||
return sf.query_external_website("https://en.wikipedia.org/wiki/", query)
|
||||
elif "good bot" in msg:
|
||||
return "^_^"
|
||||
|
||||
@@ -13,7 +14,8 @@ def command(msg, rcpt):
|
||||
if msg.startswith("!help"):
|
||||
response = "chatbot commands:" + "\n"
|
||||
response += "!help Show this help page" + "\n"
|
||||
response += "!ai [message] Ask llama2"
|
||||
response += "!ai [message] Ask llama2" + "\n"
|
||||
response += "!wiki [message] Ask wiki"
|
||||
return response
|
||||
elif msg.startswith("!ai"):
|
||||
client = ollama.Client(host='https://ollama.krov.dmz.rs')
|
||||
|
Reference in New Issue
Block a user