Update to Python 3.12
* Remove toml dependency since that comes with Python as of 3.11 * Update toml usage to tomllib in config.py * Update `with open(...)` for toml file reading to be 'rb' * Update Pipfile.lock for locked dependencies to work with Python 3.12 Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -23,7 +23,7 @@ async def main():
|
||||
channel = sys.argv[1]
|
||||
files = sys.argv[2:]
|
||||
server_config = ServerConfig()
|
||||
with open("config.toml") as fp:
|
||||
with open("config.toml", 'rb') as fp:
|
||||
server_config.load(fp)
|
||||
# This only works on one plugin per config
|
||||
bot = Bot(server_config)
|
||||
|
||||
Reference in New Issue
Block a user