a
This commit is contained in:
parent
74c120110a
commit
02031d5a38
1 changed files with 13 additions and 12 deletions
25
main-bot.py
25
main-bot.py
|
@ -15,18 +15,18 @@ logging.basicConfig(level=logging.INFO, handlers=[handler])
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
|
|
||||||
|
|
||||||
_sql_table="""CREATE TABLE personnages (
|
# _sql_table="""CREATE TABLE personnages (
|
||||||
nom_court varchar(255),
|
# nom_court varchar(255),
|
||||||
nom_complet text,
|
# nom_complet text,
|
||||||
image text,
|
# image text,
|
||||||
histoire text,
|
# histoire text,
|
||||||
pouvoirs text,
|
# pouvoirs text,
|
||||||
uuid TEXT,
|
# uuid TEXT,
|
||||||
age INTEGER,
|
# age INTEGER,
|
||||||
sexe TEXT,
|
# sexe TEXT,
|
||||||
money INTEGER DEFAULT 50,
|
# money INTEGER DEFAULT 50,
|
||||||
guild_id INTEGER NULL
|
# guild_id INTEGER NULL
|
||||||
)"""
|
# )"""
|
||||||
|
|
||||||
intents = discord.Intents.all()
|
intents = discord.Intents.all()
|
||||||
bot = GammaRPBot(intents)
|
bot = GammaRPBot(intents)
|
||||||
|
@ -36,6 +36,7 @@ async def on_ready():
|
||||||
bot.db = await aiosqlite.connect("main.db")
|
bot.db = await aiosqlite.connect("main.db")
|
||||||
bot.db.row_factory = aiosqlite.Row
|
bot.db.row_factory = aiosqlite.Row
|
||||||
await bot.load_extension("perso_commands")
|
await bot.load_extension("perso_commands")
|
||||||
|
await bot.load_extension("money_commands")
|
||||||
await bot.tree.sync()
|
await bot.tree.sync()
|
||||||
print(f"Logged in as {bot.user}")
|
print(f"Logged in as {bot.user}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue