mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 18:57:59 -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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user