diff --git a/standalone_discord_script.py b/standalone_discord_script.py index 9f9c59c..df06fbc 100644 --- a/standalone_discord_script.py +++ b/standalone_discord_script.py @@ -25,6 +25,12 @@ import discord.abc from cooldowns import Cooldown_Module +import os +import praxis_logging +praxis_logger_obj = praxis_logging.praxis_logger() +praxis_logger_obj.init(os.path.basename(__file__)) +praxis_logger_obj.log("\n -Starting Logs: " + os.path.basename(__file__)) + class Discord_Module(discord.Client): def __init__(self): super().__init__() @@ -56,6 +62,9 @@ class Discord_Module(discord.Client): #print(message.author.mention) print(message.content) + debugLogString= "\n\n{" + message.guild.name + "}[ " + str(message.channel) + " ](" + message.author.display_name +")> " + message.content + "\n" + praxis_logger_obj.log(debugLogString) + if not await self.isSenderBot(message): # This will check for the praxis_bot-tts channel and will TTS stuff from there. #await self.eval_triggeredEvents(message) diff --git a/standalone_twitch_script.py b/standalone_twitch_script.py index fa3d0c9..56c5dd4 100644 --- a/standalone_twitch_script.py +++ b/standalone_twitch_script.py @@ -102,6 +102,8 @@ class Twitch_Module(): print("[#" + message.channel + "](" + message.sender + ")> " + message.text) command, rest = utility.parse_line(message.text) + praxis_logger_obj.log("\n[#" + message.channel + "](" + message.sender + ")> " + message.text) + try: is_actionable = self.is_command(command) if is_actionable: