Search results

  1. fukurou

    once a night Boolean gate

    import time from datetime import datetime class NightOnceGate: def __init__(self, night_start_hour=21, night_end_hour=6): """ night_start_hour: hour (0-23) night begins, e.g. 21 = 9pm night_end_hour: hour (0-23) night ends, e.g. 6 = 6am Handles wraparound...
  2. fukurou

    tea party

    import random import time class DiTeaParty(Skill): def __init__(self): super().__init__() self.set_skill_type(2) # continuous skill self.toggle = "lets have a tea party" self.sip_min = 20 # seconds self.sip_max = 60 # seconds...
  3. fukurou

    LivinGrimoire holyC port

    pt1/4 // LivinGrimoire.HC // HolyC port of LivinGrimoire.py // Runs on TempleOS // OOP replaced with structs + function pointers (composition) // Caps: MAX_SKILLS=16, MAX_SENTENCES=32, MAX_ALG_PARTS=16, NEURON_QUEUE=4 #define MAX_SKILLS 16 #define MAX_SENTENCES 32 #define MAX_ALG_PARTS...
  4. fukurou

    new site

    https://www.livingrimoire.com/
  5. fukurou

    🐍 python FU money calculator

    import math def survival_years(total, monthly_spend, annual_return=0.05): """ Returns how many years you can survive. If survival is infinite, returns -1. """ yearly_spend = monthly_spend * 12 # No growth case if annual_return == 0: return total /...
  6. fukurou

    🐍 python polinators

    # Simple pronoun resolver using history import re PRONOUNS = re.compile(r'\b(it|they|them|that|this|its|their)\b', re.I) def last_entity(history: list[dict]) -> str | None: """Walk backwards through history, return last user noun phrase.""" noun =...
  7. fukurou

    🐍 python upgraded spit xp farm skill for chatbot gamification

    class DiEmoV2(Skill): def __init__(self): super().__init__() self.xp = 0 self.reseter: TrgEveryNMinutes = TrgEveryNMinutes(10) self.lim = 3 self.no_mood: Responder = Responder("bored", "meh", "neutral") self.yes_mood: Responder =...
  8. fukurou

    shondo boredom handler

    class DiBoredHandler(Skill): def __init__(self): super().__init__() self.activity: Responder = Responder( # --- Yoga poses: specific + general (NO child pose) --- "H-hey! Do a tree pose, okay? Balance like a fancy lil show‑off, OwO."...
  9. fukurou

    core update algpart name setter

    class AlgPart: def __init__(self): self._custom_name = None def setName(self, name: str): self._custom_name = name def myName(self): return self._custom_name or self.__class__.__name__
  10. fukurou

    👨‍💻 dev vrm

    import asyncio import threading import json import websockets from flask import Flask, send_from_directory import os from Skill import Skill class DiVrmController(Skill): def __init__(self): super().__init__() self.set_skill_type(1) # regular skill...
  11. fukurou

    🐍 python STT upgrade for cases of long output

    def input(self, ear: str, skin: str, eye: str): """ Read latest transcription from global var """ if len(self.brain.getLogicChobitOutput()) > 0: self.speaking = True print("Skipping listen") return # print("\nSpeak now")...
  12. fukurou

    👨‍💻 dev sex talk skill stub

    class DiAffirmations(Skill): # plays start up sound and removes skill def __init__(self): super().__init__() self.replacers: dict[str,DrawRnd] = {"relaxingthing": DrawRnd("drink tea", "play video game", "watch anime")} self.affirmations: Responder =...
  13. fukurou

    👨‍💻 dev local search engine

    pip install beautifulsoup4 requests crawler import requests from bs4 import BeautifulSoup from urllib.parse import urljoin, urlparse def crawl(start_url, max_pages=50): visited = set() to_visit = [start_url] index = {} # url -> text while to_visit and len(visited) <...
  14. fukurou

    🐍 python sequence matcher

    from difflib import SequenceMatcher from typing import Tuple, List def similarity(a: str, b: str) -> int: """ Intent similarity scoring. Returns integer between 0 and 100. 0 = completely different. 100 = identical. """ # The pathetic float that actually works...
  15. fukurou

    👨‍💻 dev shondo

    import os import pygame import threading from fishaudio import FishAudio from fishaudio.utils import save from DLC.skills_monitor import DiInstaller from LivinGrimoirePacket.AXPython import DrawRnd from LivinGrimoirePacket.LivinGrimoire import Skill, Brain from LivinGrimoirePacket.UniqueSkills...
  16. fukurou

    test pragmata

    :d1:
  17. fukurou

    vtuber test code

    pip install live2d-py pygame import pygame import live2d.v3 as live2d from live2d.utils import log import sys # הגדרות מסך SCREEN_WIDTH, SCREEN_HEIGHT = 800, 600 def main(): pygame.init() pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT), pygame.OPENGL | pygame.DOUBLEBUF)...
  18. fukurou

    👨‍💻 dev VU meter

    import sounddevice as sd import numpy as np import threading import time class LoudDetector: # Global static variable is_loud = False def __init__(self, threshold=0.35, cooldown=0.5): self.threshold = threshold self.cooldown = cooldown self._thread = None...
  19. fukurou

    👨‍💻 dev pet animation

    🧩 GOAL A desktop pet / VTuber window that: floats on the desktop animates (idle, blink, talk) stays always‑on‑top runs at 60 FPS never blocks your main program communicates with your main logic (e.g., “talk”, “blink”, “angry”, “idle”) This is the same pattern used by commercial VTuber...
  20. fukurou

    alarm skill update

    old ver: class DiAlarmer(Skill): def __init__(self): super().__init__() self.off: Responder = Responder("shut up", "stop") self._cron: Cron = Cron("", 3, 3) self.msg_extra: str = "" self.default_alarm: str = "beep beep beep" self._alarm_armed...
Top