Undo testing thing

This commit is contained in:
Firepup Sixfifty 2023-11-20 20:15:08 -06:00
parent bb4e8716dd
commit 058a97eaf7
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

View file

@ -101,8 +101,7 @@ def quote(bot: bare.bot, chan: str, name: str, message: str) -> None:
qfilter = query.replace(" ", "\s") qfilter = query.replace(" ", "\s")
r.seed() r.seed()
with open("mastermessages.txt", "r") as mm: with open("mastermessages.txt", "r") as mm:
quotes = mm.readlines() q = list(filter(lambda x: re.search(qfilter, x), mm.readlines()))
q = list(filter(lambda x: re.search(qfilter, x), quotes))
if q == []: if q == []:
q = [f'No results for "{query}" '] q = [f'No results for "{query}" ']
sel = conf.decode_escapes( sel = conf.decode_escapes(