forked from Decentrala/chatbot
Added scraper functions (wikipedia,for now)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import scraper_functions as sf
|
||||
|
||||
def processmsg(msg, rcpt):
|
||||
if msg.startswith("!"):
|
||||
return command(msg, rcpt)
|
||||
elif "youtube.com/watch" in msg:
|
||||
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])
|
||||
|
||||
def command(msg, rcpt):
|
||||
if msg.startswith("!help"):
|
||||
|
Reference in New Issue
Block a user