forked from Decentrala/chatbot
Better wiki redirect
This commit is contained in:
@@ -6,7 +6,7 @@ def processmsg(msg, rcpt):
|
||||
return msg.replace("youtube.com", "iv.datura.network")
|
||||
elif msg.startswith("!wiki"):
|
||||
cmd, query = msg.split(" ", 1)
|
||||
return sf.query_external_website("https://en.wikipedia.org/wiki/", query)
|
||||
return sf.query_external_website("https://en.wikipedia.org", "/wiki/" + query)
|
||||
elif "good bot" in msg:
|
||||
return "^_^"
|
||||
|
||||
|
Reference in New Issue
Block a user