Switch settings over to yaml and dataclasses.

This commit is contained in:
2025-03-16 15:08:20 -04:00
parent 9121627d12
commit 2ffc24eb86
3 changed files with 32 additions and 5 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ import os
import nextcord
from nextcord.ext import commands
from settings import settings
nextcord_logger = logging.getLogger("nextcord")
nextcord_logger.setLevel(logging.DEBUG)
nextcord_handler = logging.FileHandler(filename="nextcord.log", encoding="utf-8", mode="w")
@@ -49,7 +51,7 @@ def main() -> None:
print(f"{bot.user.name} has connected to Discord!")
# Run Discord bot
bot.run(bot.config.params.discord_token)
bot.run(settings.params.discord_token)
if __name__ == "__main__":