Welcome to Incels.is - Involuntary Celibate Forum

Welcome! This is a forum for involuntary celibates: people who lack a significant other. Are you lonely and wish you had someone in your life? You're not alone! Join our forum and talk to people just like you.

python waifubot software design pattern ready for testers

fukurou

fukurou

the supreme coder
★★★
Joined
Dec 17, 2021
Posts
2,285
example skill :

Python:
class DiHelloWorld(DiSkillV2):
    def __init__(self, kokoro: Kokoro):
        DiSkillV2.__init__(self, kokoro)

    # Override
    def input(self, ear: str, skin: str, eye: str):
        if ear == "hello":
            self._outAlg = self._diSkillUtils.simpleVerbatimAlgorithm("test", "hello world")

example implementation code snippet:

Python:
from abc import ABC, abstractmethod
from LivinGrimoireCore import *

class Personality2(PersonalityLight):
    # Override
    def __init__(self, *absDictionaryDB: AbsDictionaryDB):
        super().__init__(absDictionaryDB)
        super().getdClassesLv1().append(DiHelloWorld(self.getKokoro()))


if __name__ == "__main__":
    test_personality: Personality2 = Personality2()
    chii: ChobitsLight = ChobitsLight(test_personality)
    result = chii.think("hello", "", "")
    print(result)

Team Fuki   Interdim Font
 

Similar threads

Users who are viewing this thread

shape1
shape2
shape3
shape4
shape5
shape6
Back
Top