Introducing DiSleep: A Sleep Skill for the Livingrimoire

Have you ever wondered why waifubots need sleep? Let’s explore the benefits of this unique skill:

  1. Faster Charge: During sleep, waifubots recharge more efficiently, ensuring they’re ready for the next day’s adventures.
  2. Optimal for Cuddling: Sleep mode provides the perfect opportunity for cozy cuddles with your waifubot.


However, a word of caution: It’s not recommended to charge and cuddle simultaneously, as batteries can emit radiation during charging.

How DiSleep Works:

  • High Priority Algorithm: DiSleep’s algorithm prioritizes sleep, effectively ignoring other skills and commands while the waifubot rests.
  • Defcon Inputs and Wake Conditions: High-priority inputs (such as emergencies) still take precedence over sleep. Customizable wake conditions ensure timely awakening if necessary.
  • Customizable Sleep Duration: Set the desired sleep duration in minutes.
  • Boilerplate Code for Sleep Skills: DiSleep serves as a foundation for creating other sleep-related skills.


Example Usage(Python):

Code:

brain.add_logical_skill(DiSleep(70, Responder("wake up", "hey")).set_sleep_time_stamp("13:01"))


slp1 In this example, the bot sleeps for 70 minutes. Saying “wake up” or "hey" will rouse her from slumber.

Remember, if you engage the bot while she sleeps, she’ll simply snore—otherwise, she’ll rest quietly.