Calming the Bee Code 0 ▲ ronjeffries.com 97 days ago · 8 min read1543 words · Life · hide · Fediverse post Hello, loves! I entertain myself by seeing how to improve the bee ContentFactory method. Tout le monde déteste l’IA. The bee is a bit of a mess: class ContentFactory: def bee(self, *, name, initial_sayings): gift_sentences = [ 'Oh, thank you!', 'I am most grateful!', 'Here\'s something you may need.', ] initial_sayer = NameSayer.cycle(name, initial_sayings) gift_sayer = NameSayer.once(name, gift_sentences) satisfied_sentences = [ 'I\'m just a happy little bee!', 'Hmmm, hmmm, just buzzin along.', 'Nothing to see here, just a bee' ] satisfied_sayer = NameSayer.random(name, satisfied_sentences) gift = ContentFactory().receivable(name='delicious honeycomb', resource='honeycomb.png', scale=1) knowledge = SimpleNamespace( gift=gift, gift_sayings=gift_sayer, initial_sayings=initial_sayer, satisfied_sayings=satisfied_sayer,) the_bee = Denizen(name=name, knowledge=knowledge) info = SimpleNamespace(bee=the_bee) def bee_behavior(self, interactor): result = self.info.bee.interact(interactor)… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town