Compare commits
No commits in common. "0813460e8bfe441762b451232d514c1c08c5deb0" and "1795a87c4b714cc8516e1e9a68fbea821acb6238" have entirely different histories.
0813460e8b
...
1795a87c4b
@ -5,8 +5,7 @@ def processmsg(msg, rcpt):
|
|||||||
if "youtube.com/watch" in msg:
|
if "youtube.com/watch" in msg:
|
||||||
return msg.replace("youtube.com", "iv.datura.network")
|
return msg.replace("youtube.com", "iv.datura.network")
|
||||||
elif msg.startswith("!wiki"):
|
elif msg.startswith("!wiki"):
|
||||||
cmd, query = msg.split(" ", 1)
|
return sf.query_external_website("https://en.wikipedia.org/wiki/", msg.split(" ")[1])
|
||||||
return sf.query_external_website("https://en.wikipedia.org/wiki/", query)
|
|
||||||
elif "good bot" in msg:
|
elif "good bot" in msg:
|
||||||
return "^_^"
|
return "^_^"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user