Compare commits
No commits in common. "b4b4d9797dac726d8319ed8bdfc09cf841b59d53" and "328329eb9aa3ba10ec642f102347a7f55aff81ec" have entirely different histories.
b4b4d9797d
...
328329eb9a
11
frontends.py
11
frontends.py
@ -1,11 +0,0 @@
|
||||
FRONTENDS = {
|
||||
"youtube.com/watch": ("iv.datura.network", "inv.tux.pizza"),
|
||||
"medium.com" : ("scribe.rip", "sc.vern.cc", "m.opnxng.com"),
|
||||
"stackoverflow.com": ("code.whatever.social", "ao.vern.cc", "overflow.smnz.de"),
|
||||
"instagram.com": ("bibliogram.1d4.us", "bibliogram.froth.zone", "ig.opnxng.com", "proxigram.lunar.icu"),
|
||||
"genius.com": ("dm.vern.cc", "dumb.lunar.icu", "dumb.esmailelbob.xyz"),
|
||||
"reddit.com":("eu.safereddit.com", "l.opnxng.com", "libreddit.bus-hit.me"),
|
||||
"www.imdb.com": ("libremdb.iket.me", "ld.vern.cc", "binge.whatever.social"),
|
||||
"twitter.com": ("n.opnxng.com", "nitter.1d4.us", "nitter.adminforge.de"),
|
||||
"wikipedia.com": ("wiki.adminforge.de", "wiki.froth.zone", "wikiless.esmailelbob.xyz")
|
||||
}
|
@ -1,16 +1,13 @@
|
||||
import ollama
|
||||
import scraper_functions as sf
|
||||
import random
|
||||
from frontends import FRONTENDS
|
||||
|
||||
def processmsg(msg, rcpt):
|
||||
if msg.startswith("!"):
|
||||
if "youtube.com/watch" in msg:
|
||||
return msg.replace("youtube.com", "iv.datura.network")
|
||||
elif msg.startswith("!"):
|
||||
return command(msg, "")
|
||||
elif "good bot" in msg:
|
||||
return "^_^"
|
||||
for big_tech_site in FRONTENDS:
|
||||
if big_tech_site in msg:
|
||||
return "libre link: " + msg.replace(big_tech_site, random.choice(FRONTENDS[big_tech_site]))
|
||||
|
||||
def command(msg, rcpt):
|
||||
if msg.startswith("!help"):
|
||||
|
Loading…
Reference in New Issue
Block a user