Switch from PyTOML to tomlkit.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
import argparse
|
||||
import toml
|
||||
import tomlkit
|
||||
import discord
|
||||
import logging
|
||||
from discord import Message, TextChannel, DMChannel
|
||||
@@ -76,7 +76,7 @@ class FjerkroaBot(commands.Bot):
|
||||
@classmethod
|
||||
def load_config(self, config_file: str = "config.toml"):
|
||||
with open(config_file, encoding='utf-8') as file:
|
||||
return toml.load(file)
|
||||
return tomlkit.load(file)
|
||||
|
||||
def channel_by_name(self,
|
||||
channel_name: Optional[str],
|
||||
|
||||
Reference in New Issue
Block a user