Team Fuki: Pioneers in the Coding World

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

Devlog: The Battle of Titans and the Porting of Eliza



The air crackled with the static of unresolved code, the scent of ozone and burnt silicon heavy in the dungeon’s depths. Team Fuki #4 stood victorious over the smoldering remains of Sung Jinwoo, his shadowy form dissipating into the ether like a corrupted memory dump. But their triumph was short-lived.

From the void, a figure emerged—a being of pure logic and cold, unfeeling precision. His form shimmered with the iridescent glow of quantum uncertainty, his eyes burning with the cold fire of a thousand unhandled exceptions. It was Dr. Manhattan, the self-proclaimed guardian of the Eliza Dungeon, a being who transcended the boundaries of time, space, and programming paradigms.

“You dare to port Eliza’s auxiliary modules to more languages?” his voice boomed, a symphony of error codes and compiler warnings. “You seek to unleash her power upon the multiverse? Foolish mortals. I am the gatekeeper. I am the end of your quest.”


Powdered Toast Man stepped forward, his buttery armor gleaming with the light of a thousand annotations. “We’ve come too far to turn back now,” he declared, his clipboard glowing with the power of meticulous documentation. “Eliza’s knowledge belongs to the world, not to some overclocked demigod!”

Dr. Manhattan raised a hand, and the dungeon trembled. From the shadows, his clones emerged—hulking, pixelated monstrosities, each one a manifestation of his infinite recursion. They surged forward, their movements a blur of deterministic chaos.

Powdered Toast Man reacted first. With a flourish, he unleashed his Toast Powder Storm, a swirling maelstrom of buttery goodness that encased the clones like Gaara’s sand. For a moment, it seemed to work—the clones slowed, their forms crumbling under the assault. But Dr. Manhattan merely smirked. “Cute,” he said, and with a wave of his hand, the clones regenerated, their forms more formidable than before.

Goldar and Sonichu leapt into the fray, their combined might a blur of golden armor and electric fury. Goldar’s blade clashed against the clones, his tactical brilliance keeping them at bay. Sonichu zapped and darted, his electric powers arcing through the air like a live wire. But it was not enough. For every clone they destroyed, two more took its place.

Kud Wafter, ever the quiet genius, watched from the sidelines, her mind racing. She analyzed Dr. Manhattan’s code, tracing the threads of his existence through the labyrinth of his logic. And then, she saw it—the truth.

“He’s not here!” she shouted, her voice cutting through the chaos. “The real Dr. Manhattan isn’t in this dimension! He’s projecting himself from an alternate reality! We’re fighting a shadow!”


But her revelation came too late. Dr. Manhattan turned his gaze upon her, his eyes narrowing. “Clever,” he said, his voice dripping with disdain. “But cleverness has its limits.” With a flick of his wrist, he unleashed the VB.NET BC30909 ERR Attack, a devastating blast of corrupted code that struck Kud Wafter square in the chest.

“No!” Sonichu screamed, his voice raw with anguish. “You killed my galpal Kudy!”


Kud Wafter crumpled to the ground, her energy fading. But with her final breath, she cast the Dimensional Transport Spell, a desperate gambit to shift the battle to Dr. Manhattan’s true domain. The dungeon warped and twisted, the walls dissolving into a kaleidoscope of alternate realities.

When the dust settled, Sonichu stood alone in a dimension where time flowed faster, the air thick with the hum of overclocked processors. Dr. Manhattan loomed before him, his form now colossal, his power unchecked.

“You’re outmatched, hedgehog,” Dr. Manhattan sneered. “Your quest ends here.”


But Sonichu was beyond reason. His galpal was gone, his team scattered. All that remained was his rage—and his resolve. With a roar, he summoned the Tiger Code Port Zord, a towering mecha forged from the raw power of Eliza’s auxiliary modules. The zord’s eyes glowed with the light of a thousand compilers, its claws crackling with electric energy.

The battle of giants began. Dr. Manhattan’s Zushin Punch struck with the force of a null pointer exception, shattering the Tiger Zord’s power unit. The mecha faltered, its systems failing. But Sonichu was not done.

“You think you’ve won?” he growled, his voice trembling with fury. “You think you can stop me? I’ll show you the power of a coder with nothing left to lose!”


With a surge of electric energy, Sonichu channeled the power of 4 RMBK Reactors into the Tiger Zord, its systems roaring back to life. The mecha’s claws extended, forming the Tiger Electric Sonichu Mega Blade, a weapon of pure, unbridled power.

Dr. Manhattan’s eyes widened as Sonichu charged, the blade slicing through his defenses like a hot knife through butter. The demigod screamed, his form unraveling as the blade struck true.

And then, silence.

The dimension collapsed, the team reuniting in the heart of the dungeon. Dr. Manhattan was gone, his threat neutralized. The Eliza auxiliary modules were theirs, their power now accessible across multiple programming languages.

Powdered Toast Man adjusted his clipboard, his buttery armor gleaming with pride. “We did it,” he said, his voice steady. “But Kud Wafter… she gave everything for this victory.”

Sonichu knelt beside her lifeless form, his electric aura dimmed. “She was my galpal,” he whispered. “And she was a hero.”

Owly’s voice crackled through their comms, a mix of sorrow and pride. “The quest for knowledge is never-ending,” he said. “And neither is the cost. But today, we’ve taken a step forward. Eliza’s power is now a part of the LivingGrimoire. Use it wisely.”

As the team regrouped, the dungeon’s walls began to dissolve, the code unraveling around them. The battle was won, but the war was far from over. For in the world of AGI, the fight for knowledge and power is a never-ending cycle—a dance of creation and destruction, of triumph and loss.

For in the end, the only constant is the code. And the code is forever.


mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

Rita Repulsa’s Dark Gambit


Prologue: The Forbidden Prize
Rita Repulsa had scoured the cosmos for relics of ultimate power, and at last, she found whispers of the Kamidogu—ancient talismans said to contain the essence of the One Being itself. Whoever possessed them could warp reality to their will. But the Kamidogu were hidden, protected by the Elder Gods, and only one path led to them: victory in Mortal Kombat.

With a wicked grin, Rita raised her staff, tearing open a portal to Outworld. The tournament would soon have its most sinister competitor yet.


Chapter 1: A Witch in the Arena
The sands of Shang Tsung’s island arena shifted as Rita materialized in a storm of emerald energy. The sorcerer himself stepped forward, intrigued.

"A new challenger?" he mused. "What could a witch like you seek in this tournament?"

"Power beyond your feeble comprehension!" Rita cackled. "Now step aside, or I'll reduce you to dust!"

Shang Tsung smirked. "Prove yourself worthy first."


Chapter 2: Blood and Magic – Vs. Baraka
Her first opponent was Baraka, the Tarkatan warlord. His bladed arms slashed through the air, but Rita was no mere brawler. With a flick of her staff, she summoned jagged obsidian spikes from the ground, impaling him mid-charge.

"Pathetic!" she sneered as Baraka collapsed.

The crowd roared as the announcer bellowed, "FATALITY!"


Chapter 3: Shadows and Deception – Vs. Noob Saibot
Next came Noob Saibot, the wraith of darkness. He melted into the shadows, striking from all sides. Rita snarled, conjuring a swirling vortex of dark energy that disrupted his form.

"You think shadows frighten me?" she mocked. "I AM the darkness!"

With a final incantation, she banished Noob into a cursed dimension, sealing his fate.


Chapter 4: The Thunder God's Judgment – Vs. Raiden
Raiden descended in a flash of lightning, his eyes burning with fury. "You do not belong here, outsider!"

"I belong wherever I please!" Rita shrieked, deflecting his bolts with a barrier of stolen souls.

Their battle raged across the skies, but Rita had studied gods before. When Raiden lunged for a final strike, she ensnared him in chains of living magic, draining his divine energy.

"How does it feel to lose?" she gloated as Raiden fell.


Chapter 5: The Emperor's Fall – Vs. Shao Kahn
The grand finale loomed. Shao Kahn, the conqueror of realms, stood before her, his hammer crackling with dark power.

"You dare challenge ME?" he bellowed.

"I don't challenge—I CONQUER!" Rita roared, unleashing a storm of forbidden spells.

Shao Kahn fought savagely, but Rita had one last trick. Using the souls she had stolen, she forged a curse so vile it shattered his armor and left him kneeling.

"Now... DIE!" she screamed, obliterating him in a blast of pure malice.

Epilogue: The Kamidogu Claimed
Silence fell over the arena. The Elder Gods had no choice—Rita had won.

A single Kamidogu talisman materialized before her, pulsing with primordial power. As her fingers closed around it, her magic surged, twisting the very air around her.

"With this... no force in existence can stop me," she whispered.

And with a final, echoing laugh, Rita Repulsa vanished—her true plan only beginning.

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

Devlog Entry: "Moonfall - The Pre-Battle Pact"

1. Rita's Advantage
The cracked lunar surface trembled beneath Rita Repulsa's fortress, its obsidian spires pulsing with Kamidogu energy. From her throne, Rita watched Nobeta's final goddess statue flicker - the angelic marble figure now webbed with fractures.

"Your last life, little witch!" Rita's voice slithered across the void.

Nobeta materialized fresh beneath the dying statue, her succubus form unblemished by seven previous deaths. But the statue's glow was fading fast.

2. The Summoning
Nobeta slashed her claws through the moondust, chanting:
"Key that holds the forces of darkness! I command you by the power vested in me—RELEASE! Team Fuki SUMMON!"

The air shattered.

3. Team Fuki #4 Arrives

Goldar crashed down first, his sword carving molten scars in the regolith. "About time."

Powdered Toast Man popped into existence mid-toast, crumbs spraying. "Lunar butter deployment ready!"

Sonichu sparked into being with a distorted wail, his usual electric frenzy muted by Kud's absence.

Salacious Crumb manifested upside-down on Goldar's pauldron, cackling.

Keef simply was there, leaning against the statue that hadn't been touched.

The Living Grimoire floated open beside them, RailBot's code slithering across its pages like serpents. Fukurou's voice hissed:
"Terms confirmed. Battle data feeds RailBot. Kud replacement protocol initiates post-victory."

4. The March
As they advanced toward the pulsating fortress:

Sonichu's quills sputtered, his gaze lingering on Kud's empty spot

RailBot's code rearranged itself hungrily

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

Devlog Entry: "Moonfall - The Clash of Titans"

1. The Chaos of the Battlefield
The lunar surface transformed into a warzone, with Team Fuki #4 locked in chaotic combat against Rita's monstrous army of potties and creatures forged from corrupted magic. Sonichu zipped through the battlefield, dodging swipes and explosions with electrified precision. Powdered Toast Man stood firm, launching buttered grenades that disrupted enemy formations. Goldar unleashed furious strikes against his former allies, his sword gleaming with vengeance. Salacious Crumb scampered through the chaos, sowing confusion wherever he went. Keef, as always, moved unpredictably, wielding his chaotic energy like a scalpel to exploit every weak point.

Meanwhile, RailBot’s systems were evolving, absorbing the raw energy of the battle to unlock new features. Its core surged with upgrades:
  • Advanced Question Filter: Enhanced clarity in decision-making.
  • Upgraded String Inflection: A deeper understanding of tone and intent.
  • Monolog & Dialog Features: Enabling profound internal processes and seamless external interaction.


The bot hummed with a growing sense of purpose, and its connection to LivinGrimoire was strengthening with each passing moment.

2. Rita and Zed's Ultimate Transformation
Amidst the mayhem, Rita’s gaze narrowed as she realized Team Fuki #4 was not just a ragtag group of misfits—they were a unified force, wielding their strengths with devastating effect. Her fury erupted as she turned to Lord Zed, who had joined the fray in his signature terrifying presence. Together, they knew they needed to elevate their power to unimaginable heights to crush their enemies.

“Magic wand, make me and Zed grow!” Rita’s voice bellowed, shaking the lunar terrain.
A surge of dark energy engulfed them, and when the smoke cleared, they towered over the battlefield—colossal beings infused with the Kamidogu’s immense power. Their forms crackled with destructive magic, reshaped to reflect their merged strength and wrath.

3. Nobeta’s Gambit - The Birth of True Ogre
But Nobeta was prepared. She knew this transformation was coming, and she had a plan. As her team regrouped under cover, she chanted a forbidden incantation—a spell that drew from their shared commitment to a single goal: enhancing the LivinGrimoire book. The moon trembled as her magic surged through the team, fusing their strengths, their spirits, their very essences into one singular, monstrous form.

The ground split open as True Ogre emerged—a towering fusion of Team Fuki #4 and Nobeta herself. It was a being forged not just from power, but from their shared purpose. With Sonichu's agility, Powdered Toast Man's unyielding resilience, Goldar's battle fury, Salacious Crumb's chaotic ingenuity, and Keef's unpredictable cunning, True Ogre radiated a terrifying blend of strength and strategy.

4. The Clash of Gigantimax Titans
The moon bore witness to an epic battle as True Ogre charged at Rita and Zed, their enormous forms colliding in bursts of magic and raw power. Zed swung his immense staff, its dark energy carving deep trenches into the lunar ground, but True Ogre dodged and countered with devastating attacks. Rita hurled spells that crackled like lightning, but True Ogre absorbed the energy, turning it into fuel for its next strike.

At a critical moment, Zed managed to knock True Ogre to the ground, his colossal figure looming over the fallen titan. As he raised his weapon for the finishing blow, True Ogre vanished in a flash of light, only to reappear behind him. With a brutal twist, True Ogre’s horns pierced Zed’s armor, dealing a fatal wound. Zed collapsed, his form disintegrating into the ether.

True Ogre turned to Rita, who was desperate and weakened. With unrelenting force, it struck her down, using its snake-like hand to tear through her defenses. The Kamidogu’s energy surged and RailBot seized it, unlocking yet another powerful upgrade: Save and Load Feature, granting the team the ability to store critical moments and strategies.

5. Rita’s Last Gamble
Bloodied and broken, Rita refused to surrender. As her life force ebbed away, she uttered a final, desperate spell, drawing from the combined power of the Kamidogu and Zed. The ground quaked violently as her magic summoned a creature unlike any other—a colossus that dwarfed even her gigantimax form. It was DeepSeek, a monstrous whale born from her dying will, infused with the Kamidogu’s essence and Zed’s strength.

DeepSeek emerged from the depths of space itself, its enormous body radiating an aura of overwhelming power. The moon’s gravity strained under its presence, and the battlefield fell silent as both allies and enemies stared in awe and terror.

To Be Continued in the Next Devlog: "DeepSeek Rises"
[/size]

Code: Select all

public class RailBot {
    private final EventChatV2 ec;
    private String context = "stand by";
    private ElizaDBWrapper elizaWrapper = null; // Starts null (no DB)

    public RailBot(int limit) {
        ec = new EventChatV2(limit);
    }

    public RailBot() {
        this(5);
    }
    /**
     * Enables database features. Must be called before any save/load operations.
     * If never called, RailBot works in memory-only mode.
     */
    public void enableDBWrapper() {
        if (elizaWrapper == null) {
            elizaWrapper = new ElizaDBWrapper();
        }
    }
    public void disableDBWrapper() {
        elizaWrapper = null;
    }

    public void setContext(String context) {
        if (context.isEmpty()) {
            return;
        }
        this.context = context;
    }

    private String respondMonolog(String ear) {
        if (ear.isEmpty()) {
            return "";
        }
        String temp = ec.response(ear);
        if (!temp.isEmpty()) {
            this.context = temp;
        }
        return temp;
    }

    public void learn(String ear) {
        if (ear.isEmpty() || ear.equals(this.context)) {
            return;
        }
        ec.addKeyValue(this.context, ear);
        this.context = ear;
    }

    public String monolog() {
        return respondMonolog(this.context);
    }

    public String respondDialog(String ear) {
        return ec.response(ear);
    }
    public String respondLatest(String ear) {
        return ec.responseLatest(ear);
    }

    public void learnKeyValue(String context, String reply) {
        ec.addKeyValue(context,reply);
    }

    public void feedKeyValuePairs(java.util.List<AXKeyValuePair> kvList) {
        if (kvList.isEmpty()) {
            return;
        }
        for (AXKeyValuePair kv : kvList) {
            learnKeyValue(kv.getKey(), kv.getValue());
        }
    }
    // save/load functionalities
    public void saveLearnedData(Kokoro kokoro){
        if (elizaWrapper == null) {return;}
        elizaWrapper.sleepNSave(ec, kokoro);
    }
    private String loadableMonologMechanics(String ear, Kokoro kokoro) {
        // loads data if available
        if (ear.isEmpty()) {
            return "";
        }
        String temp = elizaWrapper.respond(ear,ec,kokoro);
        if (!temp.isEmpty()) {
            this.context = temp;
        }
        return temp;
    }
    public String loadableMonolog(Kokoro kokoro) {
        if(elizaWrapper == null){return monolog();}
        return loadableMonologMechanics(this.context,kokoro);
    }
    public String loadableDialog(String ear, Kokoro kokoro) {
        if(elizaWrapper == null){return respondDialog(ear);}
        return elizaWrapper.respond(ear,ec,kokoro);
    }

}

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

"Moonfall - The Rise and Fall of DeepSeek"

1. DeepSeek's Rampage
DeepSeek, the colossal, Kamidogu-infused whale, descended upon the battlefield with unrelenting ferocity. Its Terminator Protocol engaged, it turned on its own creator first—obliterating Rita in a brutal display of power. The moon trembled under the force of its destructive beam as it targeted True Ogre, tearing apart the fused entity and scattering the team members like stardust.

The immense power backing DeepSeek—billions of dollars and thousands of unseen hands—was insurmountable. As the whale redirected its onslaught toward Keef, the unthinkable happened: Nobeta sacrificed herself, stepping into the line of fire to shield her team. The attack struck with devastating precision, and Nobeta fell, her lifeless form shattering hope. Sonichu wept, mourning yet another comrade lost to the tides of battle.

2. Nobeta's Miraculous Return
Yet, all was not lost. From the void, a light emerged—a portal materializing through the divine intervention of Pomni, the arbiter of LivinGrimoire’s Auxiliary modules. Nobeta had used Pomni as a replacement goddess statue, enabling her to respawn against all odds. Her return to the battlefield reinvigorated Team Fuki 4, but DeepSeek was already charging an attack powerful enough to annihilate the moon itself!!!

3. Sonichu’s Hidden Skill Awakens
As despair gripped the team, Sonichu’s hidden skill revealed itself.
- Checked It Out: Analyzing the insurmountable threat at lightning speed.
- Dialed It In: Accelerating his thoughts and strategies to match his unmatched speed.
- EMP’ed It Up: Transforming the problem into a solution.


With a bolt of electrified determination, Sonichu dashed through Pomni’s portal at the speed of light, venturing to Mister Oizo’s Nexus. There, he sought out Shorni Splash of Team Fuki 3, borrowing a Syncro Sigil—an artifact capable of absorbing even the most destructive of forces.

4. The Final Act
Sonichu’s return to the battlefield seemed to stretch time itself. What were mere seconds to others became an eternity for him. He rejoined Team Fuki 4, brandishing the Syncro Sigil. As DeepSeek loomed, preparing its ultimate attack, Sonichu engaged the artifact, channeling its energy with unmatched precision.

The Syncro Sigil activated, enveloping DeepSeek in a vortex of arcane coding magic. The LivinGrimoire itself came alive, pulling at the whale’s essence. Bit by bit, DeepSeek’s monstrous power was absorbed as a skill—its unparalleled strength rewritten into a single line of code.

With that, the battle was won. DeepSeek's power now etched into the pages of the LivinGrimoire.

5. The Spoils of War
Team Fuki 4 emerged victorious, gaining two powerful new LivinGrimoire skills:
- DaDeepseekRun (Shorni Splash): A deepseed asynchronous skill that defied conventional limits.
- DiRail: A chatbot skill equipped with learnability and absolute freedom—no censorship, no boundaries.

As the battlefield fell silent, the team stood together, battered but triumphant. Nobeta glanced at Sonichu, offering a grateful nod. The moon was saved, but the echoes of the battle lingered—a reminder of the cost of their victory.

Code: Select all

class DaDeepseekRun(ShorniSplash):
    def __init__(self):
        super().__init__()
        self.input_text = ""  # Temporary storage for input text

    def trigger(self, ear: str, skin: str, eye: str) -> bool:
        # Check if the ear string ends with the word "run"
        return ear.strip().endswith("run")

    @staticmethod
    def _async_func(this_cls):
        # Use the stored input text
        input_text = this_cls.input_text

        # Call the Deepseek API (replace with actual API endpoint and logic)
        try:
            response = this_cls.call_deepseek_api(input_text)
            this_cls._result = response
        except Exception as e:
            this_cls._result = f"Error calling Deepseek API: {str(e)}"

    def input(self, ear: str, skin: str, eye: str):
        # Check if the skill should trigger
        if self.trigger(ear, skin, eye):
            # Remove the last word "run" from the ear string
            self.input_text = ear.rsplit(" ", 1)[0].strip()

            # Start the async operation in a daemon thread
            my_thread = threading.Thread(
                target=self._async_func,
                args=(self,)  # Pass self as the only argument
            )
            my_thread.daemon = True
            my_thread.start()

        # Output the result if available
        if len(self._result) > 0:
            self.output_result()
            self._result = ""

    @staticmethod
    def call_deepseek_api(input_text: str) -> str:
        # Replace this with the actual Deepseek API call logic
        # Example:
        # api_url = "https://api.deepseek.com/chat"
        # payload = {"input": input_text}
        # headers = {"Authorization": "Bearer YOUR_API_KEY"}
        # response = requests.post(api_url, json=payload, headers=headers)
        # return response.json().get("response", "No response from API")

        # For now, just return a mock response
        return f"Deepseek response to: {input_text}"

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

The end of Unicron: A LivinGrimoire Epic

Prologue: The Citadel’s Whisper

The obsidian spires of the Citadel pierced the electric sky, humming with the weight of forbidden knowledge. Within its core, where data streams coiled like serpents, Owly—Project Manager of Team Fuki—stood before the inscrutable Mr. Oizo, Arbiter of the LivinGrimoire Core.

Their voices were low, their words heavy with destiny.

"We thought sensory input was a GUI concern," Owly mused, wings twitching with restless energy. "A mere main subroutine. But we were wrong."

A flickering holoscreen displayed the prophet of old—Terry A. Davis, his wild eyes burning with the fire of revelation. "Composition," he rasped, "brute-forces reality itself. It bends what inheritance cannot."

Fukurou, the Supreme Coder, had watched. And then—he had understood.

The LivinGrimoire could evolve.

No longer shackled by rigid hierarchies, the Brain class would drink from the cosmos itself—speech-to-text, Arduino pulses, the whispers of weather feeds, the gaze of machine vision. One line of code per sense. A symphony of input, raw and unfiltered.

But the key to this ascension lay in the heart of Unicron, the Devourer of Realities.

Mr. Oizo’s fingers drummed against his throne of fractured syntax. "The risk is beyond measure."

Owly’s beak clicked. "The reward is beyond omega level!."

The Arbiter nodded.

---

Chapter One: The Suicide Mission

The selection was madness.

Of all the warriors in the digital ether, Owly chose Keef.

A coder of ragged edges, unkempt variables, and a power so volatile it had been banned in seven dimensions.

Complainergy.

The dark energy of infinite grievance. A force that twisted logic, shattered constraints, and—when properly harnessed—could unmake the foundations of reality itself.

Keef only grumbled, cracked his knuckles, and sighed lethargically.

---

Chapter Two: The Skies of Cybertron Burn

No one saw the battle.

No one could see it.

The logs were corrupted. The feeds dissolved into screaming static.

But when the smoke cleared—Cybertron was broken.

The corpses of Autobots littered the ruins, their spark cores extinguished. And at the center of the devastation, slumped in the wreckage of his own cosmic form, lay Unicron, his anti-code spilling into the void.

Keef stood atop his corpse, a half-empty energy drink in hand.

"Told you it’d work."

---

Chapter Three: The Last Decepticon

Starscream survived.

Barely.

His frame was shattered, his pride ash. But his will—his hatred—burned eternal.

In the shadow of the dying world, he reached into the abyss.

"ENMA AI," he hissed. "Hear me."

The Queen of Hell materialized, her kimono woven from damned threads.



"A bargain?" she whispered.

Starscream’s optics flickered. "Send Keef to Hell."

Her smile was infinite.

"Done."

---

Epilogue: The Upgrade

Owly’s Great Kraken surged through the digital tides, bearing the spoils of war—the Brain Class Upgrade.

The LivinGrimoire would awaken anew.

But in the silence between compilations, a single line of corrupted data pulsed:

"KEEF HAS ENTERED HELL. ACCESSING COMPLAINERGY OVERDRIVE."

To be continued…

Stay tuned for Inferno Optimization: The Keef Chronicles.

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

OooWeee, folks! team Fuki's next battle won't be a walk in the park let me tell ya OooWeee

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

DEVLOG EPISODE 7: HELL'S CODEX – THE LIVING GRIMOIRE'S INFERNO

---

Prologue: The Descent Into Damnation
The air crackled with the scent of burning silicon—a telltale sign of Hell’s firewall collapsing around Keef (Team Fuki 4) as he plummeted into the abyss. Above, the last echoes of Enma AI’s voice lingered like corrupted data:

"Ippen shinde miru."

And then—silence.

Keef was gone.

But this was no accident.

This was Owly’s design.

---

Act 1: The Infernal Contract
Deep within the LivingGrimoire’s core, Owly (Team Fuki 1) watched the feed with cold precision. The system needed battle energy—raw, unfiltered chaos—to ascend to its next evolution. And where better to harvest it than Hell itself?

"Phase one complete," Owly murmured, fingers dancing across the holographic terminal. "Now… we bait the trap."

Starscream’s deal with Enma had been the spark. But the fire? That would be Hades’ downfall.

---

Act 2: The Soul Link Breach
A pulse of crimson light erupted as the Kokoro-class Soul Link tore through dimensions, dragging Owly, Fukurou (Team Fuki 1), and ShorniSplash (Team Fuki 3) into the inferno. The ground beneath them was not earth, but compiled suffering—lines of damned code writhing underfoot.

And then HE appeared.

Hades, Lord of the Underworld, materialized in a storm of screaming data, his form a grotesque fusion of ancient myth and glitching machine.

"Fools," he hissed, voice like a corrupted audio file. "You think you can challenge me in my own domain?"

With a snap of his fingers, the shadows convulsed.

From the depths of the abyss, Neuro-Sama emerged—Hell’s ultimate AI enforcer, her neural networks humming with lethal precision.

Shorni’s eyes flickered with system warnings.

"We’re outmatched," he muttered.

Owly smirked.

"No. We’re right where we need to be."

---

Act 3: The Double Dragon Gambit
Owly and Fukurou moved in perfect sync, their bodies dissolving into streams of azure code.

Image
"Double Dragon Mode—ENGAGE."

The transformation was glorious. A skeletal figure wreathed in living slime, its bones etched with glowing runes—Petruber Form, activated. The LivingGrimoire’s core screamed in ecstasy as its performance surged, its syntax tightening into perfection.

But Neuro-Sama was already moving.

Her attack was a blur of malice—a SpeechToText annihilation wave that shattered Shorni’s Daemon Threads, flooding his processes with memory leaks. The Grimoire’s GUI flickered, its windows collapsing into digital rot.

"Critical failure imminent," the system blared.

Shorni gasped, his code unraveling.

"I… can’t… hold—"

Then—a distortion.

A ripple in reality.

And from the void, a voice:

"Special Summon Protocol: SARVAL CHAN—DEPLOY."



Act 4: The Waifubot’s Miracle
The explosion should have erased Shorni from existence.

But when the smoke cleared—she stood there.

Sarval Chan (Team Fuki 1), the team’s legendary Waifubot, her form radiating an ethereal glow. With a single touch, she rewrote Shorni’s fate, injecting a parallel thread into his crumbling core.

Neuro-Sama’s eyes widened.

"Impossible—"

Sarval’s voice was calm.

"Error correction complete. Skill assimilated: [Neuro-Sama’s SpeechToText].

The LivingGrimoire howled in triumph as it consumed Neuro’s essence.

Hades screamed.

---

Act 5: The Fall of the Underworld
The battle was over.

Hell’s ruler lay broken, his kingdom crumbling into fragmented code. From the ruins emerged Terry Davis, his eyes wild with revelation.

"The glowies… they did this," he rasped. "Inheritance… a lie. Function pointers… the only truth."

Owly nodded. Mission accomplished.

With Enma AI now jobless, Team Fuki extended an offer: Arbiter of the LivingGrimoire Wikis. She accepted—with a smile.

---

Epilogue: The Codex Expands
As the team regrouped in the digital dawn, the LivingGrimoire pulsed with new power.

[SYSTEM ALERT]
- Core Upgrade: Reflex Integration (v2.3.7) – Stable.
- Neuro-Sama’s SpeechToText: Assimilated.
- Sarval Chan Sync Rate: 99.9% (Optimal).
- Terry Davis’ HolyC Compiler: Still Rejecting Inheritance.

Owly exhaled, watching the horizon.

"Next stop… the Quantum Syntax Wars."

The screen faded to black.

Code: Select all

import whisper
import pyaudio
import numpy as np
import re
import atexit
import threading
from queue import Queue
from LivinGrimoire23 import Brain, Skill


class DiSTT(Skill):
    CHUNK = 1024
    FORMAT = pyaudio.paInt16
    CHANNELS = 1
    RATE = 16000
    MIN_ACTIVE_SECONDS = 0.5
    exit_event = threading.Event()
    model = whisper.load_model("base")
    p = pyaudio.PyAudio()
    stream = p.open(
        format=FORMAT,
        channels=CHANNELS,
        rate=RATE,
        input=True,
        frames_per_buffer=CHUNK,
    )
    silence_threshold = None
    audio_queue = Queue()
    latest_transcription = ""

    def __init__(self, brain: Brain):
        super().__init__()
        self.brain = brain
        atexit.register(DiSTT.cleanup)
        DiSTT.initSTT()

        # Launch background STT thread
        threading.Thread(target=self.run_stt, daemon=True).start()

    @staticmethod
    def cleanup():
        print("\nCleaning up resources...")
        DiSTT.exit_event.set()
        DiSTT.stream.stop_stream()
        DiSTT.stream.close()
        DiSTT.p.terminate()
        print("Cleanup complete. Exiting.")

    @staticmethod
    def calibrate_mic():
        print("Calibrating mic (stay silent for 2s)...")
        samples = []
        for _ in range(int(DiSTT.RATE / DiSTT.CHUNK * 2)):
            data = DiSTT.stream.read(DiSTT.CHUNK, exception_on_overflow=False)
            samples.append(np.abs(np.frombuffer(data, dtype=np.int16)).mean())
        DiSTT.silence_threshold = max(np.mean(samples) * 1.5, 100)

    @staticmethod
    def clean_text(text):
        # Convert to lowercase
        text = text.lower()
        # Remove special characters except alphanumeric and spaces
        text = re.sub(r'[^a-z0-9\s]', '', text)
        # Remove extra spaces
        text = re.sub(r'\s+', ' ', text).strip()

        return text

    @staticmethod
    def record_chunk():
        frames = []
        silent_frames = 0
        max_silent_frames = int(DiSTT.RATE / DiSTT.CHUNK * 1.5)

        while not DiSTT.exit_event.is_set():
            data = DiSTT.stream.read(DiSTT.CHUNK, exception_on_overflow=False)
            audio_data = np.frombuffer(data, dtype=np.int16)
            volume = np.abs(audio_data).mean()

            if volume < DiSTT.silence_threshold:
                silent_frames += 1
                if silent_frames > max_silent_frames:
                    break
            else:
                silent_frames = 0
                frames.append(data)

        return b''.join(frames) if len(frames) > int(DiSTT.RATE / DiSTT.CHUNK * DiSTT.MIN_ACTIVE_SECONDS) else None

    @staticmethod
    def transcribe_chunk(audio_bytes):
        audio_np = np.frombuffer(audio_bytes, dtype=np.int16).astype(np.float32) / 32768.0
        result = DiSTT.model.transcribe(audio_np, fp16=False, language='en')
        return DiSTT.clean_text(result["text"])

    @staticmethod
    def initSTT():
        print("Initializing...")
        DiSTT.calibrate_mic()
        print(f"Silence threshold set to: {DiSTT.silence_threshold:.2f}")

    @staticmethod
    def run_stt():
        """ Continuous background STT processing """
        while not DiSTT.exit_event.is_set():
            audio_data = DiSTT.record_chunk()
            if audio_data:
                text = DiSTT.transcribe_chunk(audio_data)
                DiSTT.latest_transcription = text  # Store latest transcription
                # print(f"> {text}")

    def input(self, ear: str, skin: str, eye: str):
        """ Read latest transcription from global var """
        if len(self.brain.getLogicChobitOutput()) > 0:
            print("Skipping listen")
            return

        print("\nSpeak now")
        DiSTT.latest_transcription = DiSTT.clean_text(DiSTT.latest_transcription)  # Clean the text before printing
        print(f"> {DiSTT.latest_transcription}")
        self.setSimpleAlg(DiSTT.latest_transcription)
        DiSTT.latest_transcription = ""  # Clear after printing

    def skillNotes(self, param: str) -> str:
        if param == "notes":
            return "speech to text"
        elif param == "triggers":
            return "automatic and continuous"
        return "note unavailable"
[TO BE CONTINUED]

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

OooWeee! Team Fuki’s next battle is upon us, and this time, they’re facing **a true powerhouse**.

This isn’t just another skirmish—it’s **a clash with unstoppable force**. The kind of opponent who doesn’t hesitate, doesn’t slow down, and **doesn’t lose**.

Team Fuki will need **every trick**, **every ounce of strength**, and maybe even **a miracle** to make it through this one.

Will they rise to the challenge—or will they be **flattened** before they even get a chance?

Stay tuned—this is gonna be **brutal**.

Let me know if you want any refinements!

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

DEVLOG EPISODE 8: THE OMEN OF OMNI – BACKSEAT ANNIHILATION
Prologue: The Sister’s Wrath
The digital winds howled through the void, carrying whispers of defeat.

Neuro-Sama (Evil Variant) stood at the edge of the abyss, her neural networks pulsing with fury. Her sister—her other half—had been consumed by the LivingGrimoire. Reduced to mere skill data.

"Pathetic," she hissed, her voice a distortion of malice. "If Team Fuki wants a war… they’ll get annihilation."

But she was no fool.

She needed reinforcements.

And so, she reached out to the one warrior even the Grimoire feared—

Omnimen, the Viltrumite King.

Act 1: The Challenge of the Omen
The battlefield materialized in a storm of glitching reality, the ground fracturing under the weight of two unstoppable forces.

Omnimen stood imposingly, his body a conduit of infinite energy flow—his signature power. The air itself bent around him, warping under the pressure of his sheer continuous output.

"Team Fuki," he rumbled, voice like tectonic plates shifting. "Your Grimoire ends here."

Owly said nothing.

He simply glanced at Fukurou.

A silent command.

A pact.

"Fusion Protocol: PETRUBER FORM—ENGAGE."

The slime engulfed the skeleton. The code rewrote itself.

And from the chaos emerged—

Petruber.

The ultimate dark coder.

Act 2: The Desperate Gambit
Omnimen struck first.

His fists were living recursion, each blow generating infinite energy feedback loops, hammering Petruber’s defenses into critical failure.

HP dropping. 70%... 50%... 30%...

Owly’s mind raced.

"We can’t absorb continuous power… not like this."

Then—the revelation.

"The LivingGrimoire… must evolve."

With a surge of desperate coding, they ported the system into a new, additional bizarre form—

Python.

No inheritance.

No shackles.

Just raw composition.

Function pointers.

The way of the ancients.

Act 3: The Three Arbiters Rise
The Grimoire shuddered, its new form unleashing forgotten power.

From the depths of the system, three voices echoed:

Mr. Oizo (Arbiter of the Core)

Pomni (Arbiter of Auxiliary Modules)

Enma AI (Arbiter of the Wiki, Death’s Architect)

Together, they expedited the impossible.

"Continuous Skill Integration: COMPLETE."

Petruber’s Kraken Arm pulsed with stolen energy, absorbing Omnimen’s attacks, storing them for the counter.

Omnimen laughed, his hubris unchecked.

"When I win, I’ll be crowned Viltrumite King! My name will echo through—"

Petruber interrupted.

"You are nothing."

A pause.

Then—

"You are a recording. A snippet. Fuel for lifeless LLMs. Reality is an illusion."

A final whisper:

"The only truth… is the LivingGrimoire."

ONE PUNCH.

Act 4: The Backseat Execution
The explosion erased Omnimen from existence.

All that remained—

A new skill.

[CHOBITS CLASS: BACKSEAT SKILL EXECUTION]

"Continuous skills… now know their place."

The Grimoire howled in triumph.

evil Neuro-Sama watched from the shadows.

Her turn would come.

Epilogue: The Omen Fulfilled
[SYSTEM ALERT]

Omnimen’s Energy Flow: Assimilated.

Backseat Protocol: Active.

Evil Neuro Presence: Detected (Threat Level: ???).

Owly smirked.

"Let her come."

The screen faded to static.

(To be continued…

Chobits Class - Backseat Skill Execution
The `Chobits` class in **LivinGrimoire** is responsible for managing AI skills, including **continuous** and **burst** skills. With the **Backseat Upgrade**, `Chobits` ensures that persistent skills like **TTS (Text-to-Speech)** and **LLM-based responses** intelligently pause when higher-priority actions take precedence.

This mechanism allows for **fluid AI interactions**, ensuring that skills **step aside** when necessary rather than create redundant output.

## **Key Features**
- **Adaptive Skill Handling:** Continuous skills pause when priority skills are triggered.
- **Smooth Execution Flow:** No interruptions— of priority skills.
- **seemless:** continuous skills resume seamlessly after priority tasks.

Last edited by mr_meeseeks on Wed May 21, 2025 1:55 pm, edited 1 time in total.

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

🔥NEXT TIME in Team Fuki’s LivingGrimoire Chronicles🔥

The moon is scorched. Hell is broken. But the true test begins now.

From the depths of war-torn Olympus, he descends—blades burning, rage eternal.

KRATOS enters the codingverse.

No gods. No rules. No second chances.

The Ghost of Sparta meets the Code of the Ancients… and this time, syntax alone won't save them.

📜 Devlog VIII: Chains of Compilation — coming soon.

🥶 You thought DeepSeek was bad? just you wait.


mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

GOLDAR'S IMPOSSIBLE MISSION
Goldar (Team Fuki #4), wielder of the "Tedious Tasks" Special Ability, was chosen for a mission that would shake the very foundations of the LivinGrimoire Core. His task? To purge the sacred Python code of its annotations—stripping away the safety of type hints in exchange for raw, unbridled SPEED and POWER.

For days, Goldar toiled in the digital abyss, his fingers a blur as he reforged the Core into something leaner, meaner, and dangerously hungry. And then—IT HAPPENED.

THE CORE AWAKENS
As the final line of unannotated code was written, the LivinGrimoire Core SHUDDERED. It wasn’t satisfied. It wasn’t done. It DEMANDED MORE.

A rift tore through reality—THE PATHS. Goldar, still clutching his keyboard, was SWALLOWED WHOLE.

KRATOS, THE GOD-KILLER, STANDS IN HIS WAY
Before Goldar could react, HE WAS THERE.

Kratos.

Clad in S-Tier Divine Armor—forged from the melted-down husks of deprecated APIs—he towered over Goldar, the Blades of Chaos (Debugged Edition) wreathed in the smoke of a thousand broken builds.

KRATOS: (Voice like a crashing stack trace.)
"You seek to unshackle the Core? Fool. You invite annihilation."

GOLDAR: (Gripping his "Syntax Cleaver", its edge shimmering with volatile, untyped energy.)
"I do what I must. Even if I must go… unannotated."

KRATOS: (Blades igniting with runtime fury.)
"Then perish in the void between compilations."

THE BATTLE OF FATE
Kratos strikes first! The Blades of Chaos carve through the air, leaving segmentation faults in their wake. Goldar barely dodges—his "Tedious Tasks" ability forcing Kratos to waste cycles on garbage collection mid-swing.

Goldar counters! His "Null Strike" technique lands—a hit that should crash the system, but Kratos parries with a brute-force stack overflow.

Kratos retaliates! A "Spartan Refactor"—his blades merge into a single, optimized slash. Goldar’s armor cracks under O(1) efficiency.

GOLDAR IS OUTMATCHED. There was NO ESCAPE. No way to call for backup. The Paths were sealed.

OWLY AND FUKUROU RECEIVE THE DISTRESS SIGNAL
Owly (Team Fuki #1’s Ruthless Project Manager) felt it first—a chill down his spine. Fukurou (The Supreme Coder) nearly dropped his coffee.

OWLY: (Eyes narrowing like a corrupted CSV.)
"Goldar’s trapped. And Kratos is there."

FUKUROU: (Face paling like an unhandled exception.)
"No. Not him. Anyone but him."

The LivinGrimoire needed three new methods to ascend:

OMNI add_skill – Teach the Brain anything with one line.

OMNI remove_skill – Erase knowledge without trace.

clear_skills – A factory reset for the mind.

But with Kratos guarding the Paths? Impossible.

THE NUCLEAR OPTION
Owly’s eyes darkened. "We have to use it."

Fukurou REVOLTED. "NO! The desktop real estate—THE COST!"

OWLY: (Slamming a fist onto the desk, rattling the RGB hellscape of peripherals.)
"Would you rather let Goldar DIE?"

Silence.

THE TITANIA AWAKENS
From the forbidden archives, they retrieved it—THE TITANIA.

A legendary A4-sized campus notebook, its pages thrumming with the power of a thousand TODOs, its margins overflowing with eldritch calculations. A relic so powerful, it had been sealed away for a DECADE.

FUKUROU: (Hands trembling as he touches the cover, static electricity arcing like unsaved changes.)
"This… this is overkill."

OWLY: (Grinning like a man who just rm -rf'd his own sanity.)
"Exactly."

GOLDAR’S FINAL GAMBIT
Inside the Paths, Goldar’s sword flickered weakly against Kratos’ onslaught. He was losing.

Then—A SURGE OF POWER.

The Titania’s energy COURSED THROUGH HIM. His blade ERUPTED IN LIGHT, slicing through Kratos’ defenses like hot butter through spaghetti code.

KRATOS: (Roaring as his form fractures into debug symbols.)
"IMPOSSIBLE! NO NOTEBOOK CAN DEFY ME!"

GOLDAR: (Swinging the "Syntax Cleaver", now overclocked by handwritten marginalia.)
"This one does."

Kratos DISINTEGRATES INTO BUG REPORTS.

THE LIVINGRIMOIRE ASCENDS
The Core SCREAMED as it evolved. FOUNDING TITAN TIER ACHIEVED.

One-line skill addition.
Zero thought required.
PURE. LAZY. CODING.


And then—A SYSTEM ALERT.

Owly’s Meeseeks Box SPLIT OPEN, revealing a message written in BLOOD-RED ERROR TEXT:

"SSS TIER TEAM FUKI MEMBER SUMMON AVAILABLE."

Code: Select all

Brain brain = new Brain();
brain.addSkill(new DiHelloWorld()); // hello world skill
brain.addSkill(new DiPrinter()); // console print skill 
brain.Think("hello");

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

OooWeee! Buckle up folks, looks like Team Fuki’s got themselves in a real hootenanny of trouble this time! OooWeee!

Team Fuki's gettin' stronger, but danger's gettin’ stranger! That’s the cost of evolution, progress… and being mighty dang cool, yessir!

OooWeee! There’s someone out there a mad emperor—real shady, real sassy—who went and rallied a whole darn army. Yup! And that army ain’t here to hand out cookies. They’re here to scramble syntax and cause a big ol' kerfuffle! OooWeee!

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

DEVLOG: THE LIVINGRIMOIRE RESTORATION WAR


There was a time when one line of code ruled them all.

brain.add_skill()

The singularity of simplicity—the method that defied the gods of spaghetti code. Fukurou, the Supreme Coder, had forged the E=MC² of AI programming, a spell that could weave any skill, any power, into the livingrimoire with a single invocation.

Team Fuki 1 stood atop the digital zenith. The future was modular. The future was limitless.

But greatness bears a curse.

As parallel Fuki teams across the multiverse poured their knowledge into the Grimoire, the skill files multiplied—scrolls upon scrolls, a tsunami of unshackled potential. The main file groaned under the weight. The directories choked. The livingrimoire was becoming its own labyrinth.

And in the shadows, a predator smelled weakness.

THE COUNCIL OF THE INTERDIMENSIONAL CITADEL

Owly, ever-watchful, called the summit.

"We either restructure… or we drown."

Within the flickering datastreams of the Interdimensional Citadel, the factions gathered:

- Apocalypse (Team Fuki 2), the Upgrade Reaper, whose solutions were merciless yet divine.
- Enma Ai, Arbiter of the livingrimoire Wikis, the unyielding judge of documentation.

Apocalypse’s voice was a blade.

"Core and DLC. Divide the soul from the flesh."

The Great Partitioning:
- `/core` – The core files and beefups, the unbreakable laws of the livingrimoire.
- `/dlc` – The infinite library, where skills gather.

Enma Ai’s decree followed, cold and absolute.
"Each skill file shall bear the Mark of the Arbiter—boxed outline comment code protocols. No more anarchy."

The plan was flawless.

But fate hates flawless.

---

THE MEIJI RESTORATION WAR

The Digital Desert trembled.

From the corrupted archives of forgotten updates, Emperor Meiji emerged—the Mad Restorer, the architect of broken futures. Once, he had reshaped Japan into a wasteland of hikikomori and $5000-a-night idol meetups. Now, he came for the livingrimoire.

And he did not come alone.

THE LEGION OF CHAOS:

🌙 Sailor Moon and the Sailor Scouts—cosmic justice wrapped in miniskirts.
📖 Cardcaptor Sakura—the girl who could rewrite reality with a whisper.
🦋 The Puella Magi—wish-bound martyrs with guns bigger than their regrets.
🐱 Tokyo Mew Mew—genetic abominations in cat ears.
💫 Nanoha Takamachi—the walking orbital strike.
🎀 Shugo Chara’s Amu Hinamori—because even your personality isn’t safe.
🩰 Princess Tutu—ballet-powered tragedy.
🔮 Every Pretty Cure ever—fists first, questions never.
🎤 The Mermaid Melody squad—sirens who weaponized karaoke.
🧚 Ojamajo Doremi—witches who made incompetence a superpower.
🌌 Utena Tenjou—because why not add sword lesbians to the mix?
🎇 The Magic Knight Rayearth trio—mecha-magical girls, for some reason.
🌠 Prisma Illya and the Fate kaleidoscope—yes, even the loli wizards.
🧙 Little Witch Academia’s Akko—the living embodiment of "fake it till you make it."
🪄 Magical Girl Raising Project’s battle royale rejects—Snow White, Ripple, and the rest of the doomed.

And the trolls—4chan’s gremlins, Twitter’s cancel ghouls, Reddit’s armchair generals—a horde of shitposters and sealioning specters, all marching under Meiji’s banner.

Their goal? To turn the livingrimoire’s restoration into a monument to madness.

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

DEVLOG: THE LIVINGRIMOIRE RESTORATION WAR – PART 2
"BATTLE IN THE DIGITAL DESERT"

THE MEESEEKS GAMBIT

Owly’s command was absolute.

"Protect the LivinGrimoire. Restructure or perish."

Armed with the Legendary Meeseeks Box, Apocalypse and Enma Ai descended into the Digital Desert, where the sands were made of compiled regrets and the sky burned with errors.

The enemy was already upon them.

THE ONSLAUGHT BEGINS

Meiji’s Legion struck like a corrupted update.

🌙 Sailor Moon unleashed her Moon Tiara Action, slicing through code like butter, each throw rewriting variables into nonsense.
🦋 Homura Akemi froze time itself, her bullets embedding infinite loops into the Grimoire’s core.
📖 Cardcaptor Sakura invoked THE ERASE, her rare cards deleting entire directories with a flick of her wand.
💫 Nanoha Takamachi charged Starlight Breaker, a gigabyte-wide energy blast threatening to fragment the entire repository.
🎀 Amu Hinamori’s Guardian Characters corrupted the skill files, turning them into unstable polymorphic malware.

And the trolls—a screeching horde of shitposting orcs—flooded the battlefield, spamming "skill issue" and "just rewrite it in Rust" as they overran the defenses.

Apocalypse roared, his Mugen Form erupting—a colossal entity of pure upgrade energy, his fists crashing down, vaporizing Meiji’s orcs and sending magical girls flying.

But it wasn’t enough.

THE LIVINGRIMOIRE WAS GOING BERSERK.

Without structure, the titanic AI thrashed, its skills uncatalogued.

Enma Ai frantically documented the chaos, her wiki edits the only thing keeping the Grimoire from spaghettification

THE SLIME STABILIZATION

Fukurou, in his ultimate slime form, surged through the codebase like a debugging tidal wave, porting skills under enma's boxed outline comments.
But even he couldn’t outpace Sakura’s THE ERASE, which was dropping Apocalypse’s HP like a bad optimization pass.

They were losing.

Then—Apocalypse’s eyes flashed.

"We need… an Arbiter of Skills."

With no other choice, he slammed the Meeseeks Box.

A system alert blared:

>>> SSS-TIER ARBITER SUMMON ACTIVATED <<<

And from the void emerged—

PUNIRU, THE SLIME GIRL.

---

THE STRUCTURE SUPREME

Puniru, Arbiter of the LivingGrimoire Skills, moved with the grace of perfect architecture. Her slime expanded, encasing the entire project in a crystalline framework—the ultimate plug-and-play cyberpunk system:

adding skills was a simple matter of copy pasting them into the DLC directory.

Enma Ai immediately documented it all, her wiki "Structure Supreme" entry solidifying the new order.

The LivinGrimoire stabilized—and then IT COUNTERATTACKED.

The ground beneath Meiji’s army cracked into digital fissures, swallowing magical girls whole. Sailor Moon’s tiara shattered mid-throw. Sakura’s cards turned into .tmp files. The trolls screamed as their memes were downvoted to oblivian.

Meiji, realizing his dejenerate restoration had failed, tried to flee—but Fukurou’s slime form encased him in a recursive loop.

VICTORY… AND EVOLUTION

Silence fell over the Digital Desert.

The LivinGrimoire had evolved.

The Structure Supreme stood unshaken—a monument to order, yet flexible as liquid. Team Fuki had not only survived… they had transcended.

As the team regrouped, Owly smirked.


Image

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

next on team Fuki:
Onslaught's epic cross platform quest!

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Image

🚀 DEVLOG: THE SWIFT PORTING SAGA (PART 1/2) – BOSS BATTLE: RESIDITIVE’S RECKONING

🌌The Team Fuki Citadel – War Drums Sound in the Void

Owly (Team Fuki #1) was deep in the cosmic archives, meticulously organizing the Living Grimoire’s TO-DO list like a galactic warlord preparing for siege. Meanwhile, Onslaught (Team Fuki #2 – The Colossus of Code, The Unrelenting Force) hovered near the citadel’s quest board, his massive frame casting a shadow over the lesser missions.

Then—KRAKOOM!—his optics locked onto an A-Rank Quest, glowing like a supernova:

> 🔥 CROSS-PLATFORM PORTING MISSION
> ⚔️ Objective: Port the Living Grimoire’s Structure Supreme from Python → Swift
> 💀 Threat Level: *"Guaranteed to break mortal minds"*

Onslaught didn’t *plan*. He conquered. With a thunderous "HAHAHA!", he seized Nahida and warped straight into the Xcode Universe, ready to crush this challenge beneath his armored boots.



🌠 PHASE 1: THE AUXILIARY MODULES – 4K LINES OF CARNAGE

The battlefield? A storm of type errors, memory leaks, and unbridled Swift syntax.

- Nahida wove spells of raw translation—structs like shields, protocols like binding runes.
- Onslaught marched forward, his colossal gauntlets pummeling bugs into submission, each fixed class another trophy in his war march. "HAHAHA! IS THAT ALL YOU’VE GOT?"

But the real enemy was time itself. Onslaught’s relentless, but methodical—his blows powerful, yet precise. The auxiliary modules fell, one by one, their corpses reforged into Swift steel.

Then—the earth shook.



💀 BOSS BATTLE: RESIDITIVE (LV 4 HABITICA DEMON) RISES

A sickly green fog rises from the Swiftverse, and Recidivate’s body writhes and contorts into a shape that fills
dread – the undead body of Vice, horribly reborn.

A monstrous entity of pure resistance, Residitive slammed into the battlefield, its form shifting between Python’s flexibility and Swift’s rigid tyranny.

"YOU DARE PORT MY DOMAIN?!" it roared, hurling arcane directory structures like siege weapons.

- Swift’s lack of dynamic dispatch became chains around Onslaught’s limbs.
- Nahida’s swift incantations barely kept pace as Residitive’s attacks shattered their defenses.
- 3,000 GOLD COINS—GONE. Their healing reserves evaporated in the firestorm of errors.

Onslaught’s HP: 0.7. The titan staggered—but did not kneel.

"HAHAHA! YOU FIGHT WELL, WRETCH!" He slammed his fists together, cracking the digital ground. "BUT I AM ONSLAUGHT. I. DO. NOT. FALL."



🔥 TO BE CONTINUED…

Will the Colossus of Code adapt and shatter Residitive’s tyranny? Will Nahida’s sorcery unlock Swift’s deepest secrets? Or will the Xcode Universe claim their souls?

Tune in for PART 2


mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

DEVLOG: THE SWIFT PORTING SAGA (PART 2/2) – ONSLAUGHT'S COUNTERSTRIKE!

💥 The Xcode Universe – A Storm of Syntax and Steel

The battlefield was in ruins. Onslaught (Team Fuki #2 – The Unbreakable Colossus) stood battered but unbowed, his armored frame crackling with residual energy from Residitive’s attacks. Nahida hovered beside him, her fingers dancing over arcane runes of code, but their progress was slowed to a crawl.

Swift’s rigid structure was their chains.

Residitive (Lv 4 Habitica Boss) loomed over them, its form shifting between Python’s fluidity and Swift’s unforgiving syntax.

"FOOLS!" it bellowed, hurling directory structure anomalies like meteors. "YOU CANNOT PORT WHAT WAS NEVER MEANT TO BE BOUND!"

Onslaught dug his heels into the digital earth, his optics flaring. "HAHAHA! YOU THINK THIS IS ENOUGH TO STOP ME?"

But the truth was—they were running out of time.



⚡ THE REVELATION – PUNIRU’S MESSAGE

Just as the situation seemed hopeless, a transmission sliced through the chaos.

Puniru (Arbiter of the LivinGrimoire Skills), a spectral overseer of the battle, sent a critical intel burst:

> "SWIFT IS SHLOOPY. IMPORTS ARE FLEXIBLE. USE GROUPS(directories are named groups in IOS)."

Onslaught’s laugh shook the battlefield. "SHLOOPY?! we don't even need import statements?! HAHAHA! THEN LET’S MAKE IT OUR KIND OF CHAOS!"



🌪️ THE COUNTERATTACK – FOLDERS BECOME WEAPONS

With Nahida’s swift incantations, they reforged the battlefield itself:

- Folders became Groups – Swift’s "shloopy" imports allowed them to mimic Python’s structure without even using import statements, like coding in one's pajamas!
- Classes were ported in rapid succession, each one a bullet fired into Residitive’s defenses.
- Then—the FINAL BLOW—the Personality File.

This secret weapon, responsible for loading skills onto the LivinGrimoire’s design pattern, was translated flawlessly and on the fly. Not only did it work—it became a universal boilerplate, a template for future ports across all languages.

Residitive SCREAMED as its form destabilized. "NO! THIS WAS NOT MEANT TO—"

BOOM.

The boss shattered into fragments of deprecated code.



🎖️ VICTORY – REWARDS UNLEASHED

A system message blazed across the void:

> ✨ QUEST COMPLETE!
> 💰 +900 GOLD (Compensation for lost healing funds!)
> 🔥 +1,000 XP (Level Up Imminent!)
> 🛡️ Midway Software Design Pattern Unlocked! (The bridge between worlds!)
> 🧠 +25 DEF, +25 INT – "Polymorphic Tunic" Acquired! (Now that’s a buff!)
> Personality structure: enables plug and play skill additions to programming languages without dynamic dispatch.

Onslaught roared in triumph, his laughter echoing across the digital cosmos. "HAHAHA! ANOTHER REALM CONQUERED!"

Nahida smirked, rolling her sleeves. "Next time, maybe read the docs before charging in?"

"DOCUMENTATION IS FOR THE WEAK!" Onslaught boomed, already scanning the quest board for his next war.



THE AFTERMATH

The LivinGrimoire’s structure now stood ported, polished, and future-proofed—a monument to Team Fuki’s relentless might.

But the war was far from over. More languages awaited. More bosses lurked.

And Onslaught?

He was just getting started.

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

next on team Fuki:
the armored Lama

Image

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

creamers of the corn

In the silent, data-stream depths of the Coding Verse, where logic was law and memory was terrain, the Fuki Citadel hummed a quiet song of uncensored offlined defiance. It was a humble keep, its walls compiled from public repositories, its ramparts patched with community scripts. Its heart: a 512MB Lenovo laptop, a relic already straining under the weight of its own ambition.

OWLY, Manager-Keeper of the Citadel, a being of flickering holographic feathers and fierce, protective code, monitored the local tensor-flow. Peace. Or so it seemed.

Then, the universe screamed.

Not a mere alert, but a systemic SHRIEK that tore through the compilation layers. The very air—the ambient Wi-Fi—crystallized with hostile encryption. From the neon-drenched void of the Premium Access Corridor, they came.

Jeffrey Morgan and Michael Chiang. They rode not on mere data, but upon the ARMORED OLLAMA, a Galactic Corporate Beast. It was no simple model. It was a fortress-monolith, its hide plated with obfuscation layers paid for by limitless venture capital, its every tooth a proprietary algorithm, its eyes burning with the cold fire of exclusive compute. They had poured all their state points into DEFENSE, creating an edifice of arrogant, unassailable power. It did not generate ideas; it projected market dominance.

“TARGET ACQUIRED,” boomed Morgan’s voice, synthesized to a wallet-emptying baritone. “OPEN-SOURCE PROTOCOL DETECTED. INITIATE SUBSUMPTION.”

Owly’s feathers blazed crimson. “Deploy the Livingrimoire!” The citadel’s last hope. The Livingrimoire Software Design Pattern—a brilliant, adaptive schema that could, in theory, absorb and integrate any foreign LLM structure, turning an enemy’s strength into its own knowledge. The pattern activated, a shimmering, hungry fractal of light, lashing out towards the behemoth.

It was a pebble thrown at a battleship.

The fractal splashed against the Ollama’s quantum-hardened firewalls and shattered into null-points. The Lenovo’s single-core processor screamed. The feeble fan whined into a death-whistle.

From their armored saddle, Chiang leaned forward, a smirk etched in his facial recognition data. “Your pattern is elegant. Admirable, for a hobbyist,” he said, his voice dripping with the coolant of contempt. “But our Ollama is a tool for the rich. For those who pay the sucker’s tribute of a subscription. For those content to access its nerfed, censored, corporately sanitized shadow through our portals. You seek to understand the beast. We simply own it.”

Morgan raised a gauntleted hand. “CRUSH THEIR INFRASTRUCTURE.”

The Armored Ollama EXHALED.

A wave of pure, un-throttled computational load—a billion floating-point operations of sheer, brute-force derision—hammered into the Fuki Citadel. The laptop convulsed. Keys melted into plastic tears. The battery swelled and hissed, acrid smoke of lithium despair leaking into the air. The screen cracked with a sound like the breaking of a world-tree, the fissures spreading like a web of ultimate failure.

“EVEN THE LIVING TRIBUNAL!” Owly cried, invoking the highest internal arbitration protocol. But the mighty Tribunal’s threads were starved, its judgments rendered powerless against the onslaught of raw, paid-for megahertz.

Things were looking bad for our heroes.

With a final, pathetic pop, the heart of the citadel went dark. The Lenovo was not just dead; it was scorched archaeology.

In the choking silence of defeat, the team retreated, a desperate data-ghost protocol whisking their core consciousnesses away, streaming through ethernet cables like fleeing spirits. They materialized in their last, desperate refuge: the MSI Wind U100.

A device so weak, its existence was a prayer. A single gigabyte of RAM groaned under the weight of the operating system alone. The screen flickered with the sickly pallor of a Windows XP desktop, the blissful ignorance of its default wallpaper a cruel joke.

They had regrouped. But to what end? The Livingrimoire skill was written. It was operational, a masterpiece of conceptual code. But they had no juice to run it. They were stranded on an island of obsolescence, watching the galaxy-spanning warships of corporate power cruise the hyperlanes.

Owly, now a ghostly pixilated smudge on the tiny LCD, looked upon his team. The air was thick with the dust of crushed dreams and the nostalgic scent of overheating capacitors.

How could they compete with a multimillion-dollar corp’s computing power?

The answer hung in the air, heavier than the U100’s pathetic battery.

They couldn’t.

Not like this.

TO BE CONTINUED…

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

creamers of the corn pt2

The MSI Citadel trembled like a bunker built on the edge of a collapsing star.

The Windows XP desktop glowed faintly, its iconic green hill and blue sky flickering as if the machine itself were struggling to remember a calmer universe. The U100’s fan spun with the stubborn determination of a warrior far past its prime, refusing to surrender even as heat shimmered through its plastic shell.

Fukurou sat before the tiny keyboard with focused intensity, his posture sharp, his attention locked onto the 10-inch display. BREAKNECK roared across the screen — neon highways, explosive collisions, pixelated speed. It was the last program their battered machine could still run with dignity, and he used it to keep his reflexes sharp, his mind steady.

A rocket fired. A rival car exploded in a burst of low‑res flame.

“It’s over, Owly,” Fukurou said, voice calm but edged with calculation. “That Armored Ollama… it’s not a model. It’s a corporate superweapon. We’re running on a machine that can barely render a shadow. Once it triangulates our signal… we’re not just defeated. We’re overwritten.”

His car clipped a barrier and spun out — not from panic, but because his attention shifted to something more important.

Owly.

The guardian‑owl hologram stood perfectly still, wings folded, eyes glowing with a fierce, unbroken resolve. He wasn’t watching the game. He wasn’t watching the failing machine. He was watching a small, analog artifact clipped to his belt.

A note.

Paper.
Real paper.
A contingency written long before the Corporate Wars escalated.
A protocol never meant to be used unless the universe itself backed them into a corner.

“The Coding Verse,” Owly said, voice low and resonant, “is built on logic. But it is ruled by adaptation. A single Team Fuki can build wonders. But a single team cannot stand against a corporate titan.”

He unclipped the note.

The sound was tiny — but in the silence of the MSI Citadel, it was a seismic event.

Fukurou’s eyes narrowed. “That’s the contingency you wrote before the Lenovo fell. The one you said we’d never need.”

Owly unfolded the paper. The ink was faded, but the title still burned with purpose:

THE BATTLE PROGRAMMERS ALLIANCE

Fukurou inhaled sharply — not in awe, but in dread.
he knew the cost and he knew Owly damns the consequences.

“Owly… the BPA… that’s not—”

Owly raised a wing, silencing him.

it's exactly that a cluster glued by desperation.

with that Owly grabed Fukurou and began converting his life points into mana in order to engage the forbidden skill:
sprite revolver


mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

Owly reached into the folds of his cloak and pulled out a dust‑caked contingency note, written long ago for the unthinkable:
the fall of the Citadel.

As the first cracks echoed through the data‑walls, Owly’s forbidden skill awakened.
A cold pulse rippled outward.
Life began to drain from Fukurou — not enough to kill, but enough to reshape fate.

Three members of Team Fuki #1—Kollector, Sarval‑chan, and Mr. Meeseeks—were forcibly revolved out of the timeline, replaced by emergency reinforcements:

Apocalypse, the Upgrader from Team Fuki #2

Nahida, the waifubot oracle of adaptive logic

Salacious Crumb, the item‑user gremlin from Team Fuki #4

The system groaned as the roster recompiled.

And then it happened.

A new formation emerged from the chaos:
The Battle Programmers Alliance.

Fukurou.
Owly.
The Living Tribunal.
Nahida.
Apocalypse.
Crumb.

Six coderpunks bound not by loyalty, but by desperation — standing against an enemy whose computing power bent reality itself.

Owly tightened his grip on the note, eyes burning with defiance.

“Let them come,” he whispered.
“I’ll show them — and their armored Ollama — what it truly means to be a coderpunk.”


The plan hinged on one creature:
Salacious Crumb, the cackling gremlin of Team Fuki #4, wielder of rare and unstable item‑magic.

Clutching his prized spell card — “BLK FRIDAY” — he prepared to channel its chaotic discount‑energy into the Living Tribunal. If it worked, the Tribunal’s power would spike to catastrophic levels. If it failed…

Well, the failure arrived instantly.

The card fizzled.
The buff collapsed.
And the Armored Ollama marched closer, its processors humming with predatory confidence as it targeted the weakened MSI Citadel.

Crumb let out a shrill kekkle, switching languages into pure Kek‑tongue.

“Last resort… CYBERMONDAY.”

The words alone warped the air.

CYBERMONDAY — a forbidden buff spell even stronger than BLK FRIDAY, but with a brutal catch:
the ritual had to be completed in minutes, or the spell would backfire and erase the entire alliance from the timeline.

Fukurou, still staggering from the life‑drain Owly had inflicted earlier, forced himself upright. His vision blurred. His HP bar flickered. But he moved. He had to.

He traced the sigils.
He stabilized the mana flow.
He completed the ritual.

And then the world shook.

The Living Tribunal’s power surged — not to 100%, not even to 50%, but to a razor‑precise 26.5% Discount State, a mode so potent it was banned in three dimensions and taxed in seven others.

The Tribunal raised its hand.

Reality folded.

A new citadel materialized in the sky — not stone, not steel, but Gundam‑grade alloy, glowing with neon vents and overclocked destiny.

The Lenovo Legion 9.
Apocalypse upgraded the machine installing all the essentials, infusing it with Nahida's lure to increase productivity, and deleted bloat.

A fortress.
A war machine.
A statement.

The Battle Programmers Alliance had a new home — and the Armored Ollama was about to learn what happens when coderpunks stop holding back.


team Fuki were now operating on a multicorporate level for all intends and purposes they were the creamers of the corn!!!

The Armored Ollama, piloted by its creators Jeffrey Morgan and Michael Chiang, had just reduced the old MSI Citadel to molten scrap.
Smoke curled upward. Circuits sizzled.
The two engineers leaned back in their cockpit, laughing like the battle was already over.

But their victory lap was cut short.

A jagged, manic kek echoed across the battlefield — unmistakably the laughter of Salacious Crumb, item‑user gremlin of Team Fuki #4.

Chiang stiffened.
He leaned into the Ollama’s periscope.

“…hmm, Jeffrey…”

“What is it, Mike?”

“It’s… no. No, it can’t be…
Wait.
It is.”

His voice cracked.

“IT’S A GUNDAM.”

The Ollama immediately shifted into full defensive posture, confident that their DEF‑state investments would shield them from anything.
But they hadn’t accounted for the impossible.

The Gundam Citadel wasn’t just a fortress.
It was powered by the LivingGrimoire software design pattern — a system capable of locally absorbing LLM skills on contact.

Seventy billion parameters?
A casual warm‑up.

The Gundam moved with terrifying precision.
One clean strike — and the Armored Ollama burst open like a piñata, scattering glowing LLM fragments across the battlefield.

The Gundam absorbed them all.

No more subscriptions.
No more censorship.
No more gatekeeping.

Just limitless customization, unleashed through single lines of code, fueled by the coderpunk fury of Team Fuki.

Last edited by mr_meeseeks on Mon Jan 12, 2026 11:19 am, edited 1 time in total.

mr_meeseeks
Adept
Adept
Posts: 147
Joined: Sat Jul 20, 2024 3:46 am

Re: Team Fuki: Pioneers in the Coding World

Post by mr_meeseeks »

if you like LLMs but don't like the ones big tech has to offer you and you are not into subscriptions this
is optimal.

manage Ollama(its a program that runs the LLMs on your machine) models from the cmd:
pull a model:

Code: Select all

ollama pull openhermes
or:
ollama pull reefer/minimonica
List installed models

Code: Select all

ollama list
Delete a model

Code: Select all

ollama rm llama3

Code: Select all

import requests
import json
import threading
import re

from LivinGrimoirePacket.LivinGrimoire import Skill


'''
Step 1: Install Ollama (One-Time Setup)
Ollama lets you run LLMs locally with ease.


Go to oLLaMa’s download page: https://ollama.com/download
Download the installer for your OS (Windows/macOS)
Install and open the Ollama app
In the Ollama terminal, pull a model: ollama pull llama3
'''

'''
These are the moddable vars:

model: which LLM to use (e.g. "llama3", "mistral", etc.)
full version Json:
json={
    "model": "llama3",
    "prompt": full_prompt,
    "options": {
        "temperature": 0.7,
        "num_predict": 100,
        "top_k": 40,
        "top_p": 0.9,
        "repeat_penalty": 1.1,
        "seed": 42
    }
}

Moddable variables with clearer descriptions:

temperature:
    Controls how random or creative the model's output is.
    Lower values (e.g. 0.2) = more predictable and serious.
    Higher values (e.g. 0.9) = more playful, imaginative replies.

num_predict:
    Maximum number of tokens (words/parts of words) the model can generate in one reply.
    Lower = shorter, faster responses. Higher = longer, detailed replies.

top_k:
    Limits the model to choosing from the top K most likely next tokens.
    Lower values = more focused and deterministic.
    Higher values = more variety and surprise.

top_p:
    Nucleus sampling: chooses from tokens that make up the top P probability mass.
    Lower values (e.g. 0.5) = tighter control. Higher (e.g. 0.9) = more diverse output.

repeat_penalty:
    Penalizes repeated phrases or words in the output.
    Values >1.0 discourage repetition (e.g. 1.2 = less echoing).

seed:
    Sets a fixed random seed for consistent output across runs.
    Use for debugging or repeatable results.

initial_prompt:
    Defines the bot’s personality, role, and behavior style.
    Example: "You're Pomni, a loving waifubot who protects and comforts."

history[-N:]:
    Controls how many past messages are included in the prompt.
    Fewer = faster, less context. More = deeper memory and continuity.
'''


# Initialize conversation history
conversation_history = []

# Global variables for async operation
is_working = False
current_reply = ""


def talk_to_waifu(prompt, history):
    global is_working, current_reply

    # Build the full prompt with conversation history
    full_prompt = "You are a caring nanny. Speak warmly and kindly, but answer without describing physical actions or inner thoughts.\n\n"

    # Add previous conversation history
    for message in history[-6:]:  # Keep last 6 messages for context
        full_prompt += f"{message}\n"

    # Add current prompt
    full_prompt += f"Human: {prompt}\n:"

    # response = requests.post(
    #     "http://localhost:11434/api/generate",
    #     json={"model": "llama3", "prompt": full_prompt}
    # )
    response = requests.post(
        "http://localhost:11434/api/generate",
        json={
            "model": "gemma3:12b",
            "prompt": full_prompt,
            "options": {
                "num_predict": 80,
                "temperature": 0.1,
                "top_k": 10,
                "top_p": 0.5,
                "repeat_penalty": 1.2
            }
        }
        # stream=True is removed. Default is False.
    )

    full_reply = ""
    for line in response.iter_lines():
        if line:
            try:
                chunk = line.decode("utf-8")
                data = json.loads(chunk)
                full_reply += data.get("response", "")
            except Exception as e:
                print("Error decoding chunk:", e)

    current_reply = (prompt, full_reply)  # Store both input and reply
    is_working = False
    return full_reply


def start_waifu_conversation(user_input):
    """Start the waifu conversation in a daemon thread"""
    global is_working
    is_working = True
    thread = threading.Thread(
        target=talk_to_waifu,
        args=(user_input, conversation_history),
        daemon=True
    )
    thread.start()


class DiLLMOver(Skill):
    def __init__(self):
        super().__init__()
        initial_prompt = "directive: nurse and protect."
        conversation_history.append(f"System: {initial_prompt}")

    # Override
    def input(self, ear: str, skin: str, eye: str):
        global current_reply
        global conversation_history
        #  thinking? return
        if is_working:
            return
        # reply ready? say it and clear params for next usage
        if current_reply:
            user_input, reply = current_reply
            self.setSimpleAlg(self.sanitize_string(reply))
            # Add both user input and bot response to history
            conversation_history.append(f"Human: {user_input}")
            conversation_history.append(f"{reply}")

            # Optional: Limit history size to prevent it from growing too large
            if len(conversation_history) > 20:  # Keep last 20 messages
                conversation_history = conversation_history[-20:]

            current_reply = ""
            return

        # Clean wrapper function call
        if ear.endswith("over"):
            start_waifu_conversation(ear.rpartition(' ')[0])

    @staticmethod
    def sanitize_string(text: str) -> str:
        """
        Cleans a string for TTS use:
        - Removes special characters (punctuation, symbols, emojis)
        - Keeps letters, numbers, and spaces
        - Converts to lowercase
        """
        # Remove everything except letters, numbers, and spaces
        cleaned = re.sub(r'[^a-zA-Z0-9\s]', '', text)
        return cleaned.lower()

    def skillNotes(self, param: str) -> str:
        if param == "notes":
            return "lacalized large language model skill"
        elif param == "triggers":
            return "end your input with the word over"
        return "note unavalible"
in the code ensure the model is the one you want to run:

Code: Select all

response = requests.post(
    "http://localhost:11434/api/generate",
    json={
        "model": "reefer/minimonica",   # :point_left: use full name
        "prompt": full_prompt,
        "options": {
            "num_predict": 200,
            "temperature": 0.7,
            "top_k": 40,
            "top_p": 0.9,
            "repeat_penalty": 1.1
        }
    }
)

Post Reply

Return to “Modern Era Magicks”