đŸŒšāˇ€āˇāˇ’āļēāļšāˇŠ āļšāļģ āļœāļąāˇŠāļą āļ•āļąāˇš āļąāļ¸āˇŠ āļ¸āˇ™āˇ„⎙ ⎀āļģ.

Candid-B

Well-known member
  • Apr 25, 2019
    35,509
    1
    62,315
    113
    Mother Earth
    āļ•āļšāˇ™āļąāˇŠ āļ¸āˇš āļœāˇ‘āļąāˇ’⎀ ⎀⎁⎓ āļšāļģ āļœāļąāˇ’āļąāˇŠ. 🤌
    m7iYHb.jpg
     
    • Haha
    Reactions: dilann

    Sen-lu

    Well-known member
  • Code:
    import time
    import datetime
    from playsound import playsound  # optional - if you want sound
    # If you don't have playsound:  pip install playsound
    
    PHRASE = "āļ•āļ‚ āļģ⎓āļ¸āˇŠ āļģ⎓āļ¸āˇŠ ⎄āļģ⎒āļąāˇ’ āļ…āļ¸āļģāˇƒāˇ–āļģ⎒āļē āˇƒāˇ’āļ¯āˇŠāļ°āˇ’ āļ’āˇƒāˇŠāˇ€āˇāˇ„āļ‚"
    
    def wait_until_911():
        while True:
            now = datetime.datetime.now()
            
            # Today's 9:11 AM
            target = now.replace(hour=9, minute=11, second=0, microsecond=0)
            
            # If we already passed 9:11 today → wait for tomorrow's 9:11
            if now > target:
                target = target.replace(day=now.day + 1)
                # handle month/year rollover automatically by datetime
            
            seconds_to_wait = (target - now).total_seconds()
            
            if seconds_to_wait <= 0:
                break
                
            hours = int(seconds_to_wait // 3600)
            mins = int((seconds_to_wait % 3600) // 60)
            secs = int(seconds_to_wait % 60)
            
            print(f"Waiting until 9:11 AM ... ({hours:02d}h {mins:02d}m {secs:02d}s left)")
            time.sleep(min(300, seconds_to_wait))  # sleep max 5 min at a time
    
    def chant_108_times():
        print("\n" + "="*60)
        print("          9:11 AM - Starting 108 chants")
        print("="*60 + "\n")
        
        for i in range(1, 109):
            print(f"{i:3d} | {PHRASE}")
            # Optional: add very short delay between chants
            # time.sleep(0.6) 
            # or play a short bell sound:
            # try: playsound("bell.mp3")  # you need to have bell.mp3 file
            
        print("\n" + "═"*60)
        print("              108 āļĸāļ´āļē ⎃āļ¸āˇŠāļ´āˇ–āļģ⎊āļĢāļē⎒ ✓")
        print("═"*60 + "\n")
    
    # ────────────────────────────────────────────────
    # Main program
    # ────────────────────────────────────────────────
    
    print("Mantra chanting scheduler started...")
    print("Will automatically chant at 9:11 AM every day\n")
    
    while True:
        wait_until_911()
        chant_108_times()
        
        # After finishing, sleep a bit so we don't instantly check again
        time.sleep(60)
     

    Be_Positive

    Well-known member
  • May 27, 2022
    1,000
    1,211
    113
    Code:
    import time
    import datetime
    from playsound import playsound  # optional - if you want sound
    # If you don't have playsound:  pip install playsound
    
    PHRASE = "āļ•āļ‚ āļģ⎓āļ¸āˇŠ āļģ⎓āļ¸āˇŠ ⎄āļģ⎒āļąāˇ’ āļ…āļ¸āļģāˇƒāˇ–āļģ⎒āļē āˇƒāˇ’āļ¯āˇŠāļ°āˇ’ āļ’āˇƒāˇŠāˇ€āˇāˇ„āļ‚"
    
    def wait_until_911():
        while True:
            now = datetime.datetime.now()
           
            # Today's 9:11 AM
            target = now.replace(hour=9, minute=11, second=0, microsecond=0)
           
            # If we already passed 9:11 today → wait for tomorrow's 9:11
            if now > target:
                target = target.replace(day=now.day + 1)
                # handle month/year rollover automatically by datetime
           
            seconds_to_wait = (target - now).total_seconds()
           
            if seconds_to_wait <= 0:
                break
               
            hours = int(seconds_to_wait // 3600)
            mins = int((seconds_to_wait % 3600) // 60)
            secs = int(seconds_to_wait % 60)
           
            print(f"Waiting until 9:11 AM ... ({hours:02d}h {mins:02d}m {secs:02d}s left)")
            time.sleep(min(300, seconds_to_wait))  # sleep max 5 min at a time
    
    def chant_108_times():
        print("\n" + "="*60)
        print("          9:11 AM - Starting 108 chants")
        print("="*60 + "\n")
       
        for i in range(1, 109):
            print(f"{i:3d} | {PHRASE}")
            # Optional: add very short delay between chants
            # time.sleep(0.6)
            # or play a short bell sound:
            # try: playsound("bell.mp3")  # you need to have bell.mp3 file
           
        print("\n" + "═"*60)
        print("              108 āļĸāļ´āļē ⎃āļ¸āˇŠāļ´āˇ–āļģ⎊āļĢāļē⎒ ✓")
        print("═"*60 + "\n")
    
    # ────────────────────────────────────────────────
    # Main program
    # ────────────────────────────────────────────────
    
    print("Mantra chanting scheduler started...")
    print("Will automatically chant at 9:11 AM every day\n")
    
    while True:
        wait_until_911()
        chant_108_times()
       
        # After finishing, sleep a bit so we don't instantly check again
        time.sleep(60)
    1772557857201.gif
     
    • Haha
    Reactions: Sen-lu

    Candid-B

    Well-known member
  • Apr 25, 2019
    35,509
    1
    62,315
    113
    Mother Earth
    Code:
    import time
    import datetime
    from playsound import playsound  # optional - if you want sound
    # If you don't have playsound:  pip install playsound
    
    PHRASE = "āļ•āļ‚ āļģ⎓āļ¸āˇŠ āļģ⎓āļ¸āˇŠ ⎄āļģ⎒āļąāˇ’ āļ…āļ¸āļģāˇƒāˇ–āļģ⎒āļē āˇƒāˇ’āļ¯āˇŠāļ°āˇ’ āļ’āˇƒāˇŠāˇ€āˇāˇ„āļ‚"
    
    def wait_until_911():
        while True:
            now = datetime.datetime.now()
           
            # Today's 9:11 AM
            target = now.replace(hour=9, minute=11, second=0, microsecond=0)
           
            # If we already passed 9:11 today → wait for tomorrow's 9:11
            if now > target:
                target = target.replace(day=now.day + 1)
                # handle month/year rollover automatically by datetime
           
            seconds_to_wait = (target - now).total_seconds()
           
            if seconds_to_wait <= 0:
                break
               
            hours = int(seconds_to_wait // 3600)
            mins = int((seconds_to_wait % 3600) // 60)
            secs = int(seconds_to_wait % 60)
           
            print(f"Waiting until 9:11 AM ... ({hours:02d}h {mins:02d}m {secs:02d}s left)")
            time.sleep(min(300, seconds_to_wait))  # sleep max 5 min at a time
    
    def chant_108_times():
        print("\n" + "="*60)
        print("          9:11 AM - Starting 108 chants")
        print("="*60 + "\n")
       
        for i in range(1, 109):
            print(f"{i:3d} | {PHRASE}")
            # Optional: add very short delay between chants
            # time.sleep(0.6)
            # or play a short bell sound:
            # try: playsound("bell.mp3")  # you need to have bell.mp3 file
           
        print("\n" + "═"*60)
        print("              108 āļĸāļ´āļē ⎃āļ¸āˇŠāļ´āˇ–āļģ⎊āļĢāļē⎒ ✓")
        print("═"*60 + "\n")
    
    # ────────────────────────────────────────────────
    # Main program
    # ────────────────────────────────────────────────
    
    print("Mantra chanting scheduler started...")
    print("Will automatically chant at 9:11 AM every day\n")
    
    while True:
        wait_until_911()
        chant_108_times()
       
        # After finishing, sleep a bit so we don't instantly check again
        time.sleep(60)
    āļ´āļē⎒āļēāļ­āļąāˇŠ āļšāˇāļŠāˇŠ đŸ¤ˇâ€â™‚ī¸
     

    Similar threads