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
|
|
@ -1,14 +1,12 @@
|
|||
import discord
|
||||
import asyncio
|
||||
import logging
|
||||
from bot import bot
|
||||
from utils.logger import log_info, log_error
|
||||
from discord.ext import commands
|
||||
from discord import app_commands, Intents
|
||||
from discord import app_commands, Intents, Permissions
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
from discord import Intents, Permissions
|
||||
from utils.stats_manager import enregistrer_utilisation, get_stats
|
||||
from utils.stats_manager import enregistrer_utilisation
|
||||
|
||||
# Configuration du logger Discord (niveau DEBUG pour afficher tous les événements importants)
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
|
@ -96,7 +94,7 @@ async def on_ready():
|
|||
log_info(f"Connecté en tant que {bot.user}")
|
||||
await load_cogs()
|
||||
await bot.tree.sync()
|
||||
await bot.change_presence(activity=discord.Game(name="la V1.6")) # Ajout du status
|
||||
await bot.change_presence(activity=discord.Game(name="la V1.8")) # Ajout du status
|
||||
log_info("Commandes synchronisées.")
|
||||
|
||||
# Gère les erreurs de commandes classiques
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue