Discord Chyron Command Fixes
This commit is contained in:
parent
bc6a8c8bf7
commit
241b83076c
@ -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):
|
def do_command(self, source = AbstractCommand.CommandSource.default, user = "User", command = "", rest = "", bonusData = None):
|
||||||
returnString = "trying to update chyron..."
|
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:
|
for name in config.adminUsers_List:
|
||||||
print(name)
|
print(name)
|
||||||
@ -47,6 +47,8 @@ class Command_chyron_v2(AbstractCommand, metaclass=ABCMeta):
|
|||||||
except:
|
except:
|
||||||
returnString = user + " has attempted to update the chyron but an error may have occurred!"
|
returnString = user + " has attempted to update the chyron but an error may have occurred!"
|
||||||
#returnString = chyron_.chyron_computedString
|
#returnString = chyron_.chyron_computedString
|
||||||
|
else:
|
||||||
|
returnString = user + " has attempted to update the chyron but an error may have occurred further on!!!"
|
||||||
|
|
||||||
|
|
||||||
return returnString
|
return returnString
|
||||||
|
|||||||
@ -85,9 +85,12 @@ class Command_Text_v2(AbstractCommand, metaclass=ABCMeta):
|
|||||||
newText = newText[:-1] # Gets rid of last space
|
newText = newText[:-1] # Gets rid of last space
|
||||||
#print(tempParsedMessage[2], newText)
|
#print(tempParsedMessage[2], newText)
|
||||||
tempText.itemName = tempParsedMessage[1]
|
tempText.itemName = tempParsedMessage[1]
|
||||||
if len(newText) < 120:
|
if len(newText) < 180:
|
||||||
for x in range(120-len(newText)):
|
#for x in range(120 - len(newText)):
|
||||||
|
# newText = newText + " "
|
||||||
|
while len(newText) < 180:
|
||||||
newText = newText + " "
|
newText = newText + " "
|
||||||
|
|
||||||
tempText.itemContent = newText
|
tempText.itemContent = newText
|
||||||
tempTextModule.makeItem(tempText)
|
tempTextModule.makeItem(tempText)
|
||||||
returnString = user + " has updated the chyron text!"
|
returnString = user + " has updated the chyron text!"
|
||||||
|
|||||||
@ -13,7 +13,7 @@ autoJoin_TwitchChannel = "thecuriousnerd"
|
|||||||
autoJoin_TwitchChannels = ["thecuriousnerd"]
|
autoJoin_TwitchChannels = ["thecuriousnerd"]
|
||||||
allowedCommandsList_TwitchPowerUsers = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint"]
|
allowedCommandsList_TwitchPowerUsers = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint"]
|
||||||
allowedTTS_List = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint", "<@76078763984551936>"]
|
allowedTTS_List = ["thecuriousnerd", "lakotor", "blastofcynicism", "theredpoint", "<@76078763984551936>"]
|
||||||
adminUsers_List =["thecuriousnerd", "<@76078763984551936>"]
|
adminUsers_List = ["thecuriousnerd", "<@!76078763984551936>"]
|
||||||
|
|
||||||
#Twitch Module Configs
|
#Twitch Module Configs
|
||||||
block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels
|
block_TwitchChannelsMessaging = [""] # Blocks the ability to send messages to twitch channels
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user