mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[V3 Info] Don't rely on redirect (#1581)
* [V3 Info] Don't rely on redirect Http -> Https * Update core_commands.py Use existing variable instead of new string * Update events.py Remove redirect, url only reference
This commit is contained in:
parent
e5a780eb0c
commit
9188e4a7ec
@ -72,7 +72,7 @@ class Core:
|
||||
owner = app_info.owner
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get("http://pypi.python.org/pypi/red-discordbot/json") as r:
|
||||
async with session.get('{}/json'.format(red_pypi)) as r:
|
||||
data = await r.json()
|
||||
outdated = StrictVersion(data["info"]["version"]) > StrictVersion(__version__)
|
||||
about = (
|
||||
|
||||
@ -110,7 +110,7 @@ def init_events(bot, cli_flags):
|
||||
INFO.append('{} cogs with {} commands'.format(len(bot.cogs), len(bot.commands)))
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get("http://pypi.python.org/pypi/red-discordbot/json") as r:
|
||||
async with session.get("https://pypi.python.org/pypi/red-discordbot/json") as r:
|
||||
data = await r.json()
|
||||
if StrictVersion(data["info"]["version"]) > StrictVersion(red_version):
|
||||
INFO.append(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user