Discord Chyron Command Fixes

This commit is contained in:
Alex Orid 2021-05-03 16:44:07 -04:00
parent bc6a8c8bf7
commit 241b83076c
3 changed files with 9 additions and 4 deletions

View File

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

View File

@ -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!"

View File

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