diff --git a/src/main.py b/src/main.py index 603e1a9..f88897c 100644 --- a/src/main.py +++ b/src/main.py @@ -3,7 +3,7 @@ from os import listdir from utils.core import load from utils.commands import CommandesDB -class Bot(commands.Bot): +class Client(commands.Bot): def __init__(self): self.keys = load(["ACCESS_TOKEN", "PREFIX", "CHANNEL"]) super().__init__(token = self.keys["ACCESS_TOKEN"], prefix = self.keys["PREFIX"], initial_channels = self.keys["CHANNEL"]) @@ -26,7 +26,7 @@ class Bot(commands.Bot): return raise error -client = Bot() +client = Client() for file in listdir("modules"): if file.endswith(".py") and file.startswith("-") == False: diff --git a/src/modules/commandes.py b/src/modules/commandes.py index b6e8c81..077e334 100644 --- a/src/modules/commandes.py +++ b/src/modules/commandes.py @@ -2,8 +2,8 @@ from twitchio.ext import commands from utils.core import load from utils.commands import CommandesDB -def prepare(bot: commands.Bot): - bot.add_cog(Commandes(bot)) +def prepare(client: commands.Bot): + client.add_cog(Commandes(client)) class Commandes(commands.Cog): def __init__(self, client: commands.Bot): diff --git a/src/modules/utils.py b/src/modules/utils.py index 2b75285..eb17ab0 100644 --- a/src/modules/utils.py +++ b/src/modules/utils.py @@ -1,8 +1,8 @@ from twitchio.ext import commands from utils.core import load -def prepare(bot: commands.Bot): - bot.add_cog(Utils(bot)) +def prepare(client: commands.Bot): + client.add_cog(Utils(client)) class Utils(commands.Cog): def __init__(self, client: commands.Bot):