mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix typing module for 3.5.1 (#1080)
This commit is contained in:
parent
1ef62b5e32
commit
46e37d5ff5
@ -0,0 +1,15 @@
|
||||
import sys
|
||||
import typing
|
||||
import discord
|
||||
|
||||
# Let's do all the dumb version checking in one place.
|
||||
|
||||
|
||||
if sys.version_info < (3, 5, 2):
|
||||
typing.TYPE_CHECKING = False
|
||||
|
||||
if discord.version_info.major < 1:
|
||||
print("You are not running the rewritten version of discord.py.\n\n"
|
||||
"In order to use Red v3 you MUST be running d.py version"
|
||||
" >= 1.0.0.")
|
||||
sys.exit(1)
|
||||
@ -3,15 +3,7 @@
|
||||
# Discord Version check
|
||||
|
||||
import sys
|
||||
|
||||
import discord
|
||||
|
||||
if discord.version_info.major < 1:
|
||||
print("You are not running the rewritten version of discord.py.\n\n"
|
||||
"In order to use Red v3 you MUST be running d.py version"
|
||||
" >= 1.0.0.")
|
||||
sys.exit(1)
|
||||
|
||||
from redbot.core.bot import Red, ExitCodes
|
||||
from redbot.core.cog_manager import CogManagerUI
|
||||
from redbot.core.data_manager import load_basic_configuration
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user