New Features I think

This commit is contained in:
Adriene Hutchins 2020-03-19 14:16:22 -04:00
parent 946e9a4869
commit 61c2f6aecd
7 changed files with 240 additions and 64 deletions

View file

@ -23,9 +23,13 @@ class Search(commands.Cog):
self.info = bot.logging.info
self.warn = bot.logging.warn
self.request = bot.request
self.instances = bot.instances
self.emoji = "\U0001F50D"
# Get Instances
with open('searxes.txt') as f:
self.instances = f.read().split('\n')
async def _search_logic(self, query: str, is_nsfw: bool = False,
category: str = None) -> str:
"""Provides search logic for all search commands."""