From 241b83076c413372bdfadb0aa9020008cd1587c7 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Mon, 3 May 2021 16:44:07 -0400 Subject: [PATCH] Discord Chyron Command Fixes --- commands/implemented/Command_chyron_v2.py | 4 +++- commands/implemented/Command_text_v2.py | 7 +++++-- config.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/commands/implemented/Command_chyron_v2.py b/commands/implemented/Command_chyron_v2.py index 7eed4be..a9f779c 100644 --- a/commands/implemented/Command_chyron_v2.py +++ b/commands/implemented/Command_chyron_v2.py @@ -30,7 +30,7 @@ class Command_chyron_v2(AbstractCommand, metaclass=ABCMeta): def do_command(self, source = AbstractCommand.CommandSource.default, user = "User", command = "", rest = "", bonusData = None): returnString = "trying to update chyron..." - praxis_logger_obj.log("\n Command>: " + command + " " + rest) + praxis_logger_obj.log("\n [" + user + "] Command>: " + command + " " + rest) for name in config.adminUsers_List: print(name) @@ -47,6 +47,8 @@ class Command_chyron_v2(AbstractCommand, metaclass=ABCMeta): except: returnString = user + " has attempted to update the chyron but an error may have occurred!" #returnString = chyron_.chyron_computedString + else: + returnString = user + " has attempted to update the chyron but an error may have occurred further on!!!" return returnString diff --git a/commands/implemented/Command_text_v2.py b/commands/implemented/Command_text_v2.py index a34ee38..fd0683e 100644 --- a/commands/implemented/Command_text_v2.py +++ b/commands/implemented/Command_text_v2.py @@ -85,9 +85,12 @@ class Command_Text_v2(AbstractCommand, metaclass=ABCMeta): newText = newText[:-1] # Gets rid of last space #print(tempParsedMessage[2], newText) tempText.itemName = tempParsedMessage[1] - if len(newText) < 120: - for x in range(120-len(newText)): + if len(newText) < 180: + #for x in range(120 - len(newText)): + # newText = newText + " " + while len(newText) < 180: newText = newText + " " + tempText.itemContent = newText tempTextModule.makeItem(tempText) returnString = user + " has updated the chyron text!" diff --git a/config.py b/config.py index 7284d53..08d3e41 100644 --- a/config.py +++ b/config.py @@ -13,7 +13,7 @@ autoJoin_TwitchChannel = "thecuriousnerd" autoJoin_TwitchChannels = ["thecuriousnerd"] allowedCommandsList_TwitchPowerUsers = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint"] allowedTTS_List = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint", "<@76078763984551936>"] -adminUsers_List =["thecuriousnerd", "<@76078763984551936>"] +adminUsers_List = ["thecuriousnerd", "<@!76078763984551936>"] #Twitch Module Configs block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels