mirror of
https://github.com/alterware/aw-bot.git
synced 2025-10-26 22:16:58 +00:00
feat: logs
This commit is contained in:
@@ -2,6 +2,8 @@ import asyncio
|
||||
|
||||
import discord
|
||||
|
||||
from bot.log import logger
|
||||
|
||||
MP3_PATH = "sounds/hello.mp3"
|
||||
|
||||
|
||||
@@ -29,4 +31,4 @@ async def handle_voice_state_update(member, before, after, bot):
|
||||
await vc.disconnect()
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
logger.error("Error: %s", e)
|
||||
|
||||
Reference in New Issue
Block a user