Template
Switch settings over to yaml and dataclasses.
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user