diff --git a/main-bot.py b/main-bot.py index b78e584..08b5b81 100644 --- a/main-bot.py +++ b/main-bot.py @@ -15,18 +15,18 @@ logging.basicConfig(level=logging.INFO, handlers=[handler]) logger = logging.getLogger() -_sql_table="""CREATE TABLE personnages ( - nom_court varchar(255), - nom_complet text, - image text, - histoire text, - pouvoirs text, - uuid TEXT, - age INTEGER, - sexe TEXT, - money INTEGER DEFAULT 50, - guild_id INTEGER NULL -)""" +# _sql_table="""CREATE TABLE personnages ( +# nom_court varchar(255), +# nom_complet text, +# image text, +# histoire text, +# pouvoirs text, +# uuid TEXT, +# age INTEGER, +# sexe TEXT, +# money INTEGER DEFAULT 50, +# guild_id INTEGER NULL +# )""" intents = discord.Intents.all() bot = GammaRPBot(intents) @@ -36,6 +36,7 @@ async def on_ready(): bot.db = await aiosqlite.connect("main.db") bot.db.row_factory = aiosqlite.Row await bot.load_extension("perso_commands") + await bot.load_extension("money_commands") await bot.tree.sync() print(f"Logged in as {bot.user}")