From 6e6136f7316c7a1662083b4dff82cbf08391b43e Mon Sep 17 00:00:00 2001 From: Mael G Date: Sun, 28 Jul 2019 14:55:00 -0400 Subject: [PATCH] Python version check --- bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot.py b/bot.py index fefac9b..6fce9fc 100755 --- a/bot.py +++ b/bot.py @@ -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',