Create function to send message. Function handles editing message if exists.

This commit is contained in:
alwayscompiling
2022-06-27 21:48:28 -04:00
parent 68c15c48a5
commit d30382dd91
4 changed files with 58 additions and 27 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ def open_highscores_config():
def save_highscores_data(data):
"""
Saves the highscores data dict into a json file.
@param: dict of highscores data.
@param data: dict of highscores data.
"""
with open(HIGHSCORES_DATA_FILE, encoding='utf-8', mode='w') as file:
file.write(json.dumps(data, indent=4))