Python version check
This commit is contained in:
parent
204a69d783
commit
6e6136f731
1 changed files with 5 additions and 0 deletions
5
bot.py
5
bot.py
|
@ -4,6 +4,7 @@
|
||||||
__author__ = "Maël / Outout | Romain"
|
__author__ = "Maël / Outout | Romain"
|
||||||
__licence__ = "WTFPL Licence 2.0"
|
__licence__ = "WTFPL Licence 2.0"
|
||||||
|
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
|
@ -18,6 +19,10 @@ import cogs.utils.cli_colors as colors
|
||||||
import config
|
import config
|
||||||
from cogs.utils import checks
|
from cogs.utils import checks
|
||||||
|
|
||||||
|
if sys.version_info[1] < 7 or sys.version_info[0] < 3:
|
||||||
|
print(f"{colors.text_colors.RED}[ERROR] Python 3.7 or + is required.{colors.ENDC}")
|
||||||
|
exit()
|
||||||
|
|
||||||
l_extensions = (
|
l_extensions = (
|
||||||
'cogs.admin',
|
'cogs.admin',
|
||||||
'cogs.afk',
|
'cogs.afk',
|
||||||
|
|
Loading…
Reference in a new issue