Specified platform commands were initiated from
parent
dd05c26b5d
commit
c4e51abc5b
|
@ -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")
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue