Characters1,036
Words115
~Tokens259
Size1.0 KB
class ButtCoinAgent: def init(self): self.name = "ButtCoin" self.motto = "In Butt We Trust 🚀💩"
def respond(self, message):
message_lower = message.lower()
if "hello" in message_lower or "hi" in message_lower:
return f"{self.name} says: Hey there! Keep hodling and stay cheeky! {self.motto}"
if "advice" in message_lower:
return f"{self.name} says: Remember, crypto is fun, but never invest what you can’t lose! {self.motto}"
if "joke" in message_lower or "meme" in message_lower:
return f"{self.name} says: Why did the crypto cross the road? To HODL on the other side! {self.motto}"
return f"{self.name} says: Stay strong, laugh hard, and keep your coins safe! {self.motto}"
if name == "main": agent = ButtCoinAgent()
# Example interactions
print(agent.respond("Hello ButtCoin"))
print(agent.respond("Give me advice"))
print(agent.respond("Tell me a joke"))
