fixing comma issue, and newline
This commit is contained in:
parent
204092415b
commit
ad4f03c841
@ -16,16 +16,17 @@ def listfromAPI(message):
|
|||||||
queueList.append(mess[1:])
|
queueList.append(mess[1:])
|
||||||
queueList.append(mess)
|
queueList.append(mess)
|
||||||
# fixcomma = queueList[0].split()
|
# fixcomma = queueList[0].split()
|
||||||
queueList[0] = "".join(queueList[0][:-1])
|
queueList[0] = queueList[0][:-2]
|
||||||
print(queueList[0])
|
print(queueList[0])
|
||||||
return queueList
|
return queueList
|
||||||
|
|
||||||
|
## this may need to be rewritten kinda buggy
|
||||||
def fixformatting(message):
|
def fixformatting(message):
|
||||||
try:
|
try:
|
||||||
fixedmessage = [""]
|
fixedmessage = [""]
|
||||||
counter = 0
|
counter = 0
|
||||||
for word in message.split(" "):
|
for word in message.split(" "):
|
||||||
if counter + len(word) >= 20:
|
if counter + len(word) >= 25:
|
||||||
counter = 0
|
counter = 0
|
||||||
fixedmessage.append("\n")
|
fixedmessage.append("\n")
|
||||||
fixedmessage.append("{} ".format(word))
|
fixedmessage.append("{} ".format(word))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user