Fix nsfw searching, first work on tests

This commit is contained in:
Adriene Hutchins 2020-04-08 20:18:03 -04:00
parent 1a123bc25d
commit dfc0953708
3 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Search(commands.Cog, name="Basic"):
safesearch: str
# NSFW Filtering
if nono_re.match(query):
if nono_re.match(query) and not is_nsfw:
raise SearchExceptions.SafesearchFail('Query had NSFW.')
base = "https://api.qwant.com/api"

View File

View File

@ -8,6 +8,7 @@ chardet==3.0.4
dblpy==0.3.4
discord==1.0.1
git+https://github.com/Rapptz/discord-ext-menus@master
git+https://github.com/CraftSpider/dpytest@master
discord.py==1.3.3
entrypoints==0.3
flake8==3.7.9