fixing comma issue, and newline

This commit is contained in:
Sean Corrigan 2020-12-24 15:29:00 -05:00
parent 204092415b
commit ad4f03c841

View File

@ -16,16 +16,17 @@ def listfromAPI(message):
queueList.append(mess[1:])
queueList.append(mess)
# fixcomma = queueList[0].split()
queueList[0] = "".join(queueList[0][:-1])
queueList[0] = queueList[0][:-2]
print(queueList[0])
return queueList
## this may need to be rewritten kinda buggy
def fixformatting(message):
try:
fixedmessage = [""]
counter = 0
for word in message.split(" "):
if counter + len(word) >= 20:
if counter + len(word) >= 25:
counter = 0
fixedmessage.append("\n")
fixedmessage.append("{} ".format(word))