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()
|
||||
|
||||
|
||||
_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}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue