I am being stupid and stuff

This commit is contained in:
ForeverPyrite
2024-12-21 13:49:05 -05:00
parent b61e4e219e
commit e4be8caa41

View File

@@ -57,13 +57,13 @@ load_dotenv()
import pytz import pytz
from datetime import datetime from datetime import datetime
def log(str): def log(message):
try: try:
with open("logs/log.md", "a") as file: with open("logs/log.md", "a") as file:
file.write(str) file.write(message)
except FileNotFoundError: except FileNotFoundError:
os.system("touch logs/log.md") with open("logs/log.md", "x+"):
log("\n#### log.md was not found, so it was just touched.\n") log(message)
### OpenAI Config ### OpenAI Config