Skip to content

Commit

Permalink
✨ Feature: add gh proxy links (#118)
Browse files Browse the repository at this point in the history
Co-authored-by: Ju4tCode <[email protected]>
  • Loading branch information
eya46 and yanyongyu authored Jan 28, 2024
1 parent e549a9a commit 7f8ead9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nb_cli/handlers/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ async def load_module_data(
f"https://cdn.jsdelivr.net/gh/nonebot/registry@results/{module_name}.json",
f"https://cdn.staticaly.com/gh/nonebot/registry@results/{module_name}.json",
f"https://jsd.cdn.zzko.cn/gh/nonebot/registry@results/{module_name}.json",
f"https://ghproxy.com/https://raw.githubusercontent.com/nonebot/registry/results/{module_name}.json",
f"https://mirror.ghproxy.com/https://raw.githubusercontent.com/nonebot/registry/results/{module_name}.json",
f"https://gh-proxy.com/https://raw.githubusercontent.com/nonebot/registry/results/{module_name}.json",
]

async def _request(url: str) -> httpx.Response:
Expand Down

0 comments on commit 7f8ead9

Please sign in to comment.