master updates #41

Manually merged
alex_orid merged 177 commits from master into github-master 2021-05-13 21:11:10 +00:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit acac919f81 - Show all commits

View File

@ -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)

View File

@ -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: