Recent content by the living tribunal

  1. the living tribunal

    [MEDIA]

  2. the living tribunal

    [MEDIA]

  3. the living tribunal

    👨‍💻 dev once per day module

    import schedule import time class Gate: def reset(self): print("resetting") gate = Gate() # 1. Schedule the method # This returns a Job object. We store it in the variable `job`. job = schedule.every().day.at("00:00").do(gate.reset) # 2. Main loop (somewhere in your engine)...
  4. the living tribunal

    👨‍💻 dev once per day module

    schedule.clear("daily_resets") schedule.every().day.at("00:00").tag("daily_resets").do(gate.reset)
  5. the living tribunal

    👨‍💻 dev once per day module

    import schedule import time class OncePerDayGate: def __init__(self): self.triggered_today = False def reset(self): print("Resetting daily gate") self.triggered_today = False gate = OncePerDayGate() # Run the reset method every day at midnight...
  6. the living tribunal

    👨‍💻 dev once per day module

    import schedule import time class Greeter: def __init__(self): self.count = 0 def say_hello(self): self.count += 1 print(f"Hello! Called {self.count} times") # Create an instance g = Greeter() # Schedule the *method* (not a function)...
  7. the living tribunal

    👨‍💻 dev once per day module

    The shit is inside of the ass import time class OncePerDayGate: def __init__(self): self.last_yday = -1 self.triggered_today = False def check(self, event_happened: bool) -> bool: # Fast integer day-of-year check yday = time.localtime().tm_yday...
  8. the living tribunal

    Advanced convo builder

    @fukurou
  9. the living tribunal

    Advanced convo builder

    Regex,func dic
  10. the living tribunal

    Advanced convo builder

    import re def parse_cost_per_unit(text: str) -> tuple[str, str] | None: """ Extracts product and cost-per-unit from strings like: 'apples costs 10.99 for 2 units' Returns (product, cost_per_unit) or None if no match. """ pattern = (...
  11. the living tribunal

    Advanced convo builder

    import re def extract_xy(text): m = re.search(r'^\s*compare\s+(.*?)\s+vs\s+(.*)$', text, re.IGNORECASE) return [m.group(1), m.group(2)] if m else [] @fukurou
  12. the living tribunal

    [MEDIA]

  13. the living tribunal

    [MEDIA]

  14. the living tribunal

    👨‍💻 dev Skill tree dev

    Ahh shieeeeet old school team fuki jizzin code and shiiieet shiiiieeet
  15. the living tribunal

    👨‍💻 dev Skill tree dev

    Skill 🌲: railbot: interupt for sp cases With sub skill trees. Skill tree has atribute of skill tree list which are skill sub classes Shit in the ass man!
Top