Search results

  1. fukurou

    doc string maxing

    In Python, docstrings can be used in methods just like functions, but they belong to a **class** and describe how the method works within that class. ### Example: ```python class Calculator: """A simple calculator class.""" def add(self, a, b): """ Adds two numbers and...
  2. fukurou

    👨‍💻 dev loop jizz up

    import sched import time from livingrimoire import Brain, DiHelloWorld, DiSysOut def tick(scheduler): """Runs at intervals without blocking.""" user_input = input("> ") if user_input.lower() == "exit": print("Exiting program...") return # Stop scheduling...
  3. fukurou

    👨‍💻 dev loop jizz up

    import sched import time from livingrimoire import Brain, DiHelloWorld, DiSysOut scheduler = sched.scheduler(time.time, time.sleep) brain = Brain() brain.add_logical_skill(DiHelloWorld()) brain.hardwareChobit.add_continuous_skill(DiSysOut()) def tick(): """Runs at intervals without...
  4. fukurou

    👨‍💻 dev loop jizz up

    import asyncio from livingrimoire import Brain, DiHelloWorld, DiSysOut async def main_loop(): brain = Brain() brain.add_logical_skill(DiHelloWorld()) brain.hardwareChobit.add_continuous_skill(DiSysOut()) while True: user_input = input("> ") # Get user input if...
  5. fukurou

    👨‍💻 dev loop jizz up

    import time from livingrimoire import Brain, DiHelloWorld, DiSysOut if __name__ == '__main__': brain = Brain() brain.add_logical_skill(DiHelloWorld()) brain.hardwareChobit.add_continuous_skill(DiSysOut()) while True: user_input = input("> ") if...
  6. fukurou

    👨‍💻 dev loop jizz up

    import asyncio async def input_loop(): while True: print("Waiting for input...") await asyncio.sleep(2) # Pauses but allows other async tasks print("Loop continues...") asyncio.run(input_loop())
  7. fukurou

    [MEDIA]

  8. fukurou

    👨‍💻 dev burp

    import os from pygame import mixer class UltraLeanVoiceSkill(Skill): def __init__(self): super().__init__() self.voices_folder = "voices" self._valid_voices = { # Pre-sanitized filenames (e.g., "hello_world") os.path.splitext(f)[0].lower().replace(" "...
  9. fukurou

    👨‍💻 dev burp

    import os from pygame import mixer class CachedVoiceSkill(Skill): def __init__(self): super().__init__() self.voices_folder = os.path.abspath("voices") self._valid_voices = set() # Stores pre-sanitized filenames self._init_voice_cache() mixer.init()...
  10. fukurou

    👨‍💻 dev burp

    import os from pygame import mixer class UltraVoiceSkill(Skill): def __init__(self): super().__init__() self.voices_folder = os.path.abspath("voices") self._safe_chars = set("abcdefghijklmnopqrstuvwxyz0123456789 _-") # Allowed chars mixer.init() def...
  11. fukurou

    nappy code

    class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour = 19 # 7 PM self._claimed_diapered = False self._reminder_attempts = 0 self._refusal_count = 0 self._last_reminder_time = 0 self._last_refusal_time = 0...
  12. fukurou

    nappy code

  13. fukurou

    nappy code

    last working new ver: class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour = 19 # 7 PM self._claimed_diapered = False self._reminder_attempts = 0 self._last_reminder_time = 0 self._max_attempts = 3 # Max reminders per...
  14. fukurou

    nappy code

    old ver: class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour: int = 19 self._e = False self.declarations = UniqueResponder("put on your nappy", "it is diaper time my little bed wetter","put on your diaper", "diaper your butt so you do...
  15. fukurou

    nappy code

    import time class DiEvent(Skill): def __init__(self): super().__init__() self.event_hour = 19 # 19:00 = 7 PM self._claimed_diapered = False self._reminder_attempts = 0 self._last_reminder_time = 0 self._max_attempts = 3 # Avoid infinite...
  16. fukurou

    shut off skill

    import sys class DiShutOff(Skill): def __init__(self): super().__init__() # Call the parent class constructor def input(self, ear, skin, eye): if ear == "shut it down": print("Shutting down...") # Optional confirmation message sys.exit() #...
  17. fukurou

    shut off skill

    import sys print("I'm outta here!") sys.exit()
  18. fukurou

    [MEDIA]

  19. fukurou

    cts ports

    var algTriggered: Bool = false var ctsSkills: [Skill] = [] // continuous skills
  20. fukurou

    [MEDIA]

Top