Fix: remove duplicate DataManager class, double on_ready, clean imports, unify version to V1.8
This commit is contained in:
parent
56958c5832
commit
c839a198d5
3 changed files with 5 additions and 41 deletions
12
bot.py
12
bot.py
|
|
@ -12,14 +12,6 @@ bot = commands.Bot(command_prefix='/', intents=intents)
|
|||
async def on_ready():
|
||||
try:
|
||||
log_info(f"Le bot {bot.user} a démarré avec succès.")
|
||||
await bot.change_presence(activity=discord.Game(name="la version 1.2"))
|
||||
await bot.change_presence(activity=discord.Game(name="la version 1.8"))
|
||||
except Exception as e:
|
||||
log_error(f"Erreur lors du démarrage du bot: {e}")
|
||||
|
||||
@bot.event
|
||||
async def on_ready():
|
||||
try:
|
||||
synced = await bot.tree.sync()
|
||||
print(f"Synchronisé {len(synced)} commande(s)")
|
||||
except Exception as e:
|
||||
print(f"Erreur lors de la synchronisation des commandes : {e}")
|
||||
log_error(f"Erreur lors du démarrage du bot: {e}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue