Enforcing python version because ordered dicts in 3.7 is required.

This commit is contained in:
alwayscompiling
2022-07-29 14:27:10 -04:00
parent 3eed30567d
commit e2b0c0ea89
+6
View File
@@ -4,6 +4,7 @@ main file for pvm-highscores bot
import logging import logging
import os import os
import sys
import nextcord import nextcord
from nextcord.ext import commands from nextcord.ext import commands
@@ -32,6 +33,11 @@ submission_objects: dict = {}
def main(): def main():
"""Main function for bot.""" """Main function for bot."""
min_python_version = (3, 7)
if sys.version_info < min_python_version:
print("ERROR: Python version must be >= 3.7")
sys.exit()
# Allows privledged intents for monitoring members joining, roles editing, and role assignments # Allows privledged intents for monitoring members joining, roles editing, and role assignments
# These need to be enabled in the developer portal as well # These need to be enabled in the developer portal as well
intents = nextcord.Intents.default() intents = nextcord.Intents.default()