2 hours ago · 8 min read1653 words · Tech · hide · 0 comments

Hello, loves! I was fiddling with the Denizen. I have a small need and a small idea. Small steps to nice outcome. Tout le monde déteste l’IA. Here’s Denizen, a bit changed from when you last saw it, I think. I changed it to use Sayers throughout: class Denizen: def __init__(self, *, name, initial_sayings=None, gift=None): self.name = name if initial_sayings is None: initial_sayings = ['Hmm...'] self.initial_sayings = NameSayer.cycle(self.name, initial_sayings) gift_sentences = [ 'Oh, thank you!', 'Here\'s something you may need.', ] self.gift_sayings = NameSayer.sequence(self.name, gift_sentences) satisfied_sentences = [ 'I\'m just a happy little bee!', 'Hmmm, hmmm, just buzzin along.', 'Nothing to see here, just a bee' ] self.satisfied_sayings = NameSayer.cycle(self.name, satisfied_sentences) self.gift = gift self.say = 0 self.gift = gift from content import ContentFactory self.gift = ContentFactory().receivable(name='delicious honeycomb', resource='honeycomb.png', scale=1)…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.