Skip to content

Commit

Permalink
assistance: use v1 UDB-API for now
Browse files Browse the repository at this point in the history
TODO: Switch to v2
  • Loading branch information
lifehackerhansol committed Jul 21, 2024
1 parent aeb7627 commit 146e509
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/search/' + query, timeout=45) as r:
async with self.bot.session.get('https://udb-api.lightsage.dev/v1/search/' + query, timeout=45) as r:
if r.status == 200:
j = await r.json()
res = j['results']
Expand Down

0 comments on commit 146e509

Please sign in to comment.