Vicy_Publique/bot.py

17 lines
515 B
Python
Raw Normal View History

2026-08-16 19:37:15 +02:00
from utils.logger import log_info, log_error
from discord.ext import commands
import discord
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
bot = commands.Bot(command_prefix='/', intents=intents)
@bot.event
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.8"))
2026-08-16 19:37:15 +02:00
except Exception as e:
log_error(f"Erreur lors du démarrage du bot: {e}")