CodeWarrior on Nostr: From iris: def get_mood(): if __code__ == "__note_event__": if formatting.isgood(): ...
From iris:
def get_mood():
if __code__ == "__note_event__":
if formatting.isgood():
return happy
else:
return sad
else:
return unsure
Published at
2023-05-02 18:36:03Event JSON
{
"id": "7554b2b26fe08235f01aa558c902fa71250e343090bac301b47283554151978f",
"pubkey": "21a7014db2ba17acc8bbb9496645084866b46e1ba0062a80513afda405450183",
"created_at": 1683052563,
"kind": 1,
"tags": [
[
"e",
"4bd799fc9da87cc62acc9cbd6e312fc42acac3aeff3b3cabd85d50a98c451468",
"",
"root"
],
[
"p",
"21a7014db2ba17acc8bbb9496645084866b46e1ba0062a80513afda405450183"
]
],
"content": "From iris:\n\ndef 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\n",
"sig": "33b6ff402b221f4dab9c1f3a1157f5f1e80e614a5228bfdaf2d2cd6474b8441aa2cf80e06c9e4d8795cb5f77da302703b7787f0b63b2aa4df99a31ec11b491a8"
}