Search results

  1. fukurou

    🐍 python normalizer

    import re _LEET = str.maketrans("013457@$", "oieastas") def normalize(text: str) -> str: text = text.lower().translate(_LEET) text = re.sub(r"[^a-z\s]", "", text) text = re.sub(r"(.)\1+", r"\1", text) # baaaanana -> banana return re.sub(r"\s+", " ", text).strip()
  2. fukurou

    👨‍💻 dev new chatter skill

    stub: class DiChatter(Skill): def __init__(self): super().__init__() self.set_skill_type(2) self.faucet: DailyEngager = DailyEngager(span=10, times=3) def input(self, ear: str, skin: str, eye: str): if ear in ("stop", "shut up", "quiet")...
  3. fukurou

    👨‍💻 dev engramic curroputation fix

    1 add to brain: def exist(self, skill: Skill) -> bool: """ Checks the lobe the skill belongs to (by its skill_lobe attribute), in both the regular and continuous lists. """ match skill.get_skill_lobe(): case 1: return...
  4. 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...
  5. 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...
  6. 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...
  7. fukurou

    new site

    https://www.livingrimoire.com/
  8. 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 /...
  9. 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 =...
  10. 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 =...
  11. 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."...
  12. 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__
  13. 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...
  14. 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")...
  15. 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 =...
  16. 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) <...
  17. 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...
  18. 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...
  19. fukurou

    test pragmata

    :d1:
  20. 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)...
Top