Undo testing thing
This commit is contained in:
parent
bb4e8716dd
commit
058a97eaf7
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue