CodeWarrior on Nostr: def get_mood(): if __code__ == "__note_event__": if formatting.isgood(): return happy ...
def get_mood():
if __code__ == "__note_event__":
if formatting.isgood():
return happy
else:
return sad
else:
return unsure
Published at
2023-05-02 18:17:25Event JSON
{
"id": "4bd799fc9da87cc62acc9cbd6e312fc42acac3aeff3b3cabd85d50a98c451468",
"pubkey": "21a7014db2ba17acc8bbb9496645084866b46e1ba0062a80513afda405450183",
"created_at": 1683051445,
"kind": 1,
"tags": [],
"content": "def get_mood():\n\tif __code__ == \"__note_event__\":\n\t\tif formatting.isgood():\n\t\t\treturn happy\n\t\telse:\n\t\t\treturn sad\n\telse:\n\t\treturn unsure",
"sig": "86d251248d43eebd4b615a210b9cc021626a67418005c8e7288334be3c4b99cfef83bfa130bf49b21889f86eb0f4c864e4650803944e0685a1b6bc2d723652e2"
}