Skip to content

Commit

Permalink
Revert "assistance: use v1 UDB-API for now"
Browse files Browse the repository at this point in the history
It works just fine.

This reverts commit 146e509.
  • Loading branch information
lifehackerhansol committed Jul 21, 2024
1 parent 146e509 commit 0b38960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/assistance.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def setup_assistance(self):
async def unisearch(self, query: str) -> list[dict]:
query = query.lower()
res = []
async with self.bot.session.get('https://udb-api.lightsage.dev/v1/search/' + query, timeout=45) as r:
async with self.bot.session.get('https://udb-api.lightsage.dev/search/' + query, timeout=45) as r:
if r.status == 200:
j = await r.json()
res = j['results']
Expand Down

0 comments on commit 0b38960

Please sign in to comment.