mirror of
https://github.com/fotoente/MiCECo.git
synced 2024-10-22 23:19:09 +00:00
fixed Typos
This commit is contained in:
parent
e8eb694284
commit
742626e43c
1 changed files with 7 additions and 4 deletions
11
miceco.py
11
miceco.py
|
@ -150,10 +150,10 @@ while True:
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
if len(noeList) == =:
|
if len(noteList) == 0:
|
||||||
print("Nothing to count, exiting script.")
|
print("Nothing to count, exiting script.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if len(noteList) == 1:
|
if len(noteList) == 1:
|
||||||
if noteList[0]["text"].find(chr(8203) + chr(8203) + chr(8203)) > 0:
|
if noteList[0]["text"].find(chr(8203) + chr(8203) + chr(8203)) > 0:
|
||||||
print("Only note is MiCECo note.")
|
print("Only note is MiCECo note.")
|
||||||
|
@ -295,6 +295,9 @@ else:
|
||||||
for count in emojiList:
|
for count in emojiList:
|
||||||
emojisTotal += count["count"]
|
emojisTotal += count["count"]
|
||||||
|
|
||||||
|
initial_text = ""
|
||||||
|
initial_react_text = ""
|
||||||
|
|
||||||
if emojisTotal > 0:
|
if emojisTotal > 0:
|
||||||
initial_text = nickname + " has written " + str(len(noteList)) + " Notes yesterday, " + formerDate.strftime(
|
initial_text = nickname + " has written " + str(len(noteList)) + " Notes yesterday, " + formerDate.strftime(
|
||||||
'%a %d-%m-%Y') + "\nand used a total of " + str(emojisTotal) + " Emojis. #miceco" + chr(8203) + chr(8203) + chr(
|
'%a %d-%m-%Y') + "\nand used a total of " + str(emojisTotal) + " Emojis. #miceco" + chr(8203) + chr(8203) + chr(
|
||||||
|
@ -317,7 +320,7 @@ text = emojilib.emojize(text)
|
||||||
|
|
||||||
if max_note_length < len(text):
|
if max_note_length < len(text):
|
||||||
emoji_text = initial_text
|
emoji_text = initial_text
|
||||||
for item in range(0,5):
|
for item in range(0, 5):
|
||||||
count = emojiList[item]["count"]
|
count = emojiList[item]["count"]
|
||||||
emoji = emojiList[item]["emoji"]
|
emoji = emojiList[item]["emoji"]
|
||||||
emoji_text += f"{count}x {emoji} " + chr(9553) + " "
|
emoji_text += f"{count}x {emoji} " + chr(9553) + " "
|
||||||
|
@ -325,7 +328,7 @@ if max_note_length < len(text):
|
||||||
|
|
||||||
if getReactions:
|
if getReactions:
|
||||||
reactText = initial_react_text
|
reactText = initial_react_text
|
||||||
for item in range(0,5):
|
for item in range(0, 5):
|
||||||
count = reactList[item]["count"]
|
count = reactList[item]["count"]
|
||||||
reaction = reactList[item]["reaction"]
|
reaction = reactList[item]["reaction"]
|
||||||
reactText += f"{count}x {reaction} " + chr(9553) + " "
|
reactText += f"{count}x {reaction} " + chr(9553) + " "
|
||||||
|
|
Loading…
Reference in a new issue