Calming the Bee Code 0 ▲ ronjeffries.com 54 minutes ago · 8 min read1543 words · Life · hide · 0 comments 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)… No comments yet. Log in to reply on the Fediverse. Comments will appear here.