Voice et bot modif
This commit is contained in:
parent
189d56026b
commit
7333a22bcd
10774 changed files with 634644 additions and 933308 deletions
Binary file not shown.
BIN
commandes/autres/__pycache__/config.cpython-313.pyc
Normal file
BIN
commandes/autres/__pycache__/config.cpython-313.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
commandes/autres/__pycache__/logger.cpython-313.pyc
Normal file
BIN
commandes/autres/__pycache__/logger.cpython-313.pyc
Normal file
Binary file not shown.
|
|
@ -41,13 +41,16 @@ class ActionLogger:
|
|||
|
||||
def log_message(self, level: str, message: str):
|
||||
"""Log a general message."""
|
||||
if level.casefold() == 'info':
|
||||
if not level or not message:
|
||||
return
|
||||
level_lower = level.casefold()
|
||||
if level_lower == 'info':
|
||||
self.logger.info(message)
|
||||
elif level.casefold() == 'warning':
|
||||
elif level_lower == 'warning':
|
||||
self.logger.warning(message)
|
||||
elif level.casefold() == 'error':
|
||||
elif level_lower == 'error':
|
||||
self.logger.error(message)
|
||||
elif level.casefold() == 'debug':
|
||||
elif level_lower == 'debug':
|
||||
self.logger.debug(message)
|
||||
|
||||
# Global logger instance
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@ from .config import config
|
|||
|
||||
async def execute(bot, params, message):
|
||||
channel_name = params.get('channel_name')
|
||||
if not channel_name:
|
||||
await message.channel.send("Veuillez spécifier un nom de salon.")
|
||||
return
|
||||
guild = message.guild
|
||||
channel = discord.utils.find(lambda c: c.name.casefold() == channel_name.casefold(), guild.channels)
|
||||
if not channel:
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@ from .config import config
|
|||
|
||||
async def execute(bot, params, message):
|
||||
channel_name = params.get('channel_name')
|
||||
if not channel_name:
|
||||
await message.channel.send("Veuillez spécifier un nom de salon.")
|
||||
return
|
||||
guild = message.guild
|
||||
channel = discord.utils.find(lambda c: c.name.casefold() == channel_name.casefold(), guild.channels)
|
||||
if not channel:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue