diff --git a/Discord/bot.py b/Discord/bot.py index 37fcc87d66..d1b987de59 100644 --- a/Discord/bot.py +++ b/Discord/bot.py @@ -13,6 +13,7 @@ from platform import python_version import random import sys +import tomllib import traceback from urllib import parse # TODO: use urllib.parse @@ -31,7 +32,6 @@ import pyowm import requests import sentry_sdk -import tomli # Use tomllib in Python 3.11 import tweepy import tweepy.asynchronous import twitchio @@ -275,7 +275,7 @@ def aiml_predicates(self): @functools.cache def config(self): with open("../config.toml", "rb") as config_file: - return tomli.load(config_file) + return tomllib.load(config_file) @property def emoji_guild_ids(self): diff --git a/requirements.txt b/requirements.txt index 2bdedd5e33..5efedac2d5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -70,7 +70,6 @@ sphobjinv==2.3.1 SQLAlchemy==2.0.23 sympy==1.12 tabulate==0.9.0 -tomli==2.0.1 treys==0.1.8 tweepy[async]==4.14.0 types-beautifulsoup4==4.12.0.7