Python version check

This commit is contained in:
Mael G 2019-07-28 14:55:00 -04:00
parent 204a69d783
commit 6e6136f731

5
bot.py
View file

@ -4,6 +4,7 @@
__author__ = "Maël / Outout | Romain"
__licence__ = "WTFPL Licence 2.0"
import copy
import datetime
import os
@ -18,6 +19,10 @@ import cogs.utils.cli_colors as colors
import config
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 = (
'cogs.admin',
'cogs.afk',