mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
Fix nsfw searching, first work on tests
This commit is contained in:
parent
1a123bc25d
commit
dfc0953708
3 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Search(commands.Cog, name="Basic"):
|
||||||
safesearch: str
|
safesearch: str
|
||||||
|
|
||||||
# NSFW Filtering
|
# NSFW Filtering
|
||||||
if nono_re.match(query):
|
if nono_re.match(query) and not is_nsfw:
|
||||||
raise SearchExceptions.SafesearchFail('Query had NSFW.')
|
raise SearchExceptions.SafesearchFail('Query had NSFW.')
|
||||||
|
|
||||||
base = "https://api.qwant.com/api"
|
base = "https://api.qwant.com/api"
|
||||||
|
|
0
extensions/tests/regex.py
Normal file
0
extensions/tests/regex.py
Normal file
|
@ -8,6 +8,7 @@ chardet==3.0.4
|
||||||
dblpy==0.3.4
|
dblpy==0.3.4
|
||||||
discord==1.0.1
|
discord==1.0.1
|
||||||
git+https://github.com/Rapptz/discord-ext-menus@master
|
git+https://github.com/Rapptz/discord-ext-menus@master
|
||||||
|
git+https://github.com/CraftSpider/dpytest@master
|
||||||
discord.py==1.3.3
|
discord.py==1.3.3
|
||||||
entrypoints==0.3
|
entrypoints==0.3
|
||||||
flake8==3.7.9
|
flake8==3.7.9
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue