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
from datetime import datetime
def log(str):
def log(message):
try:
with open("logs/log.md", "a") as file:
file.write(str)
file.write(message)
except FileNotFoundError:
os.system("touch logs/log.md")
log("\n#### log.md was not found, so it was just touched.\n")
with open("logs/log.md", "x+"):
log(message)
### OpenAI Config