more logging
This commit is contained in:
parent
2c6fd90a0e
commit
acac919f81
@ -25,6 +25,12 @@ import discord.abc
|
|||||||
|
|
||||||
from cooldowns import Cooldown_Module
|
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):
|
class Discord_Module(discord.Client):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
@ -56,6 +62,9 @@ class Discord_Module(discord.Client):
|
|||||||
#print(message.author.mention)
|
#print(message.author.mention)
|
||||||
print(message.content)
|
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):
|
if not await self.isSenderBot(message):
|
||||||
# This will check for the praxis_bot-tts channel and will TTS stuff from there.
|
# This will check for the praxis_bot-tts channel and will TTS stuff from there.
|
||||||
#await self.eval_triggeredEvents(message)
|
#await self.eval_triggeredEvents(message)
|
||||||
|
|||||||
@ -102,6 +102,8 @@ class Twitch_Module():
|
|||||||
print("[#" + message.channel + "](" + message.sender + ")> " + message.text)
|
print("[#" + message.channel + "](" + message.sender + ")> " + message.text)
|
||||||
command, rest = utility.parse_line(message.text)
|
command, rest = utility.parse_line(message.text)
|
||||||
|
|
||||||
|
praxis_logger_obj.log("\n[#" + message.channel + "](" + message.sender + ")> " + message.text)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
is_actionable = self.is_command(command)
|
is_actionable = self.is_command(command)
|
||||||
if is_actionable:
|
if is_actionable:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user