임시 커밋
This commit is contained in:
parent
adfeea04a4
commit
ba11447da1
5 changed files with 55 additions and 0 deletions
13
app/run.py
13
app/run.py
|
|
@ -52,6 +52,19 @@ print("🗨️ | Uploading at Discord")
|
|||
lib.디스코드(MLSV_YMD)
|
||||
print("🗨️ | Uploaded at Discord")
|
||||
|
||||
print(f"📆 | Today Date : {MLSV_YMD}")
|
||||
# Check if today is the last day of the month
|
||||
today = datetime.now()
|
||||
first_day_of_next_month = today.replace(day=28) + timedelta(days=4)
|
||||
last_day_of_this_month = first_day_of_next_month - timedelta(days=first_day_of_next_month.day)
|
||||
if today.date() == last_day_of_this_month.date():
|
||||
print("📅 | Today is the last day of the month.")
|
||||
print("📆 | Uploading School Event Post")
|
||||
lib.학사일정_얻기(MLSV_YMD)
|
||||
print("📆 | School Event Post Uploaded")
|
||||
else:
|
||||
print("📅 | Today is not the last day of the month.")
|
||||
|
||||
print("🎉 | All tasks completed.")
|
||||
# Calculate running time
|
||||
print("🕒 | Running Time:", datetime.now() - start_time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue