Specified platform commands were initiated from

kami_dev
Kami 2025-02-02 00:32:38 +01:00
parent dd05c26b5d
commit c4e51abc5b
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class DiscordBot(commands.Bot):
async def on_command(self, ctx): async def on_command(self, ctx):
"""Logs every command execution at DEBUG level.""" """Logs every command execution at DEBUG level."""
self.log(f"Command executed: {ctx.command} by {ctx.author} in #{ctx.channel}", "DEBUG") self.log(f"Discord Command executed: {ctx.command} by {ctx.author} in #{ctx.channel}", "DEBUG")
async def on_ready(self): async def on_ready(self):
self.log(f"Discord bot is online as {self.user}", "INFO") self.log(f"Discord bot is online as {self.user}", "INFO")

View File

@ -34,7 +34,7 @@ class TwitchBot(commands.Bot):
# Log the command if it's a command # Log the command if it's a command
if message.content.startswith("!"): if message.content.startswith("!"):
self.log(f"Command executed: {message.content} by {message.author.name} in #{message.channel.name}", "DEBUG") self.log(f"Twitch Command executed: {message.content} by {message.author.name} in #{message.channel.name}", "DEBUG")
# Process the message for command execution # Process the message for command execution
await self.handle_commands(message) await self.handle_commands(message)