From 68c523fb35c1c4084b678b26744b167a2a9000b2 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 13 Apr 2023 16:39:36 +0200 Subject: [PATCH] This bot will only work with Python 3.10, due to some modules not supporting other versions --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9035d2d..b7a1b7f 100755 --- a/main.py +++ b/main.py @@ -79,7 +79,8 @@ def shutdown(): if __name__ == "__main__": - assert sys.version_info >= (3, 9), "Python 3.10 or higher is required" + if sys.version_info.major != 3 or sys.version_info.minor != 10: + print("Hey! Congratulations, you've made it so far (which is pretty rare with no Python 3.10). Unfortunately, this program only works on Python 3.10. Please install Python 3.10 and try again.") ffmpeg_install() # install ffmpeg if not installed directory = Path().absolute() config = settings.check_toml(