Skip to content

Commit

Permalink
api: twlmenu-extras API updates
Browse files Browse the repository at this point in the history
- Switch URL
- Adapt to API v2 changes
  • Loading branch information
lifehackerhansol committed Jul 21, 2024
1 parent 8ec2ff1 commit 2db1663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ async def start_skin_menu(self, ctx, argument):
store_name = parse.quote(ctx.command.extras['store'])

if argument.strip() == "-r":
url = f"https://twlmenu-extras.lifehacker.moe/random/{store_name}"
url = f"https://twlmenu-extras.lifehacker101.net/random?system={store_name}"
else:
url = f"https://twlmenu-extras.lifehacker.moe/search/{store_name}/{parse.quote(argument)}"
url = f"https://twlmenu-extras.lifehacker101.net/search/{parse.quote(argument)}?system={store_name}"
try:
resp = await self.request(url)
except commands.CommandError as e:
Expand Down

0 comments on commit 2db1663

Please sign in to comment.