This commit is contained in:
GZod01 2024-12-17 11:05:55 +01:00
parent 74c120110a
commit 02031d5a38

View file

@ -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}")