From a3a18b8a90a6b64064d4f637ad9cefd6b676ce45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=95=94=EB=83=A5?= Date: Sun, 2 Mar 2025 00:05:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EA=B2=8C=20=EB=8D=94=20=ED=9A=A8?= =?UTF-8?q?=EC=9C=A8=EC=A0=81=EC=9D=B4=EC=A7=80=20=EC=95=8A=EB=82=98?= =?UTF-8?q?=EC=9A=94=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/run.py | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/app/run.py b/app/run.py index 7bdb96c..4b964f7 100644 --- a/app/run.py +++ b/app/run.py @@ -27,6 +27,23 @@ print("πŸͺ | Account information was successfully retrieved.") print("πŸ“… | Getting MLSV_YMD Timestamp") print("πŸ“… | Date:", MLSV_YMD) +# Check if today is the last day of the month +였늘 = datetime.today() +내일 = 였늘 + timedelta(days=1) + +if 내일.month != 였늘.month: + print("πŸ“… | Today is the last day of the month.") + print("πŸ“† | Uploading School Event Post") + 학사일정_경둜 = lib.학사일정_μ–»κΈ°(MLSV_YMD) + cl.photo_upload( + 학사일정_경둜, + caption=f"#μΈμ²œμƒμ •μ€‘ν•™κ΅ #상정쀑학ꡐ #학사일정 \n{내일.strftime("%Y")}λ…„ {내일.strftime("%m")}μ›” 학사일정", + extra_data={'is_paid_partnership': False} + ) + print("πŸ“† | School Event Post Uploaded") +else: + print("πŸ“… | Today is not the last day of the month.") + print("🍲 | Getting Meal Info Image") lib.μ–»κΈ°(MLSV_YMD) @@ -53,22 +70,6 @@ lib.λ””μŠ€μ½”λ“œ(MLSV_YMD) print("πŸ—¨οΈ | Uploaded at Discord") print(f"πŸ“† | Today Date : {MLSV_YMD}") -# Check if today is the last day of the month -였늘 = datetime.today() -내일 = 였늘 + timedelta(days=1) - -if 내일.month != 였늘.month: - print("πŸ“… | Today is the last day of the month.") - print("πŸ“† | Uploading School Event Post") - 학사일정_경둜 = lib.학사일정_μ–»κΈ°(MLSV_YMD) - cl.photo_upload( - 학사일정_경둜, - caption=f"#μΈμ²œμƒμ •μ€‘ν•™κ΅ #상정쀑학ꡐ #학사일정 \n{내일.strftime("%Y")}λ…„ {내일.strftime("%m")}μ›” 학사일정", - extra_data={'is_paid_partnership': False} - ) - print("πŸ“† | School Event Post Uploaded") -else: - print("πŸ“… | Today is not the last day of the month.") print("πŸŽ‰ | All tasks completed.") # Calculate running time