gourcetools on Nostr: To prevent #[0] from flooding again, maybe checking the last message he send could be ...
To prevent
nostr-commits (npub1qqq…c28r) from flooding again, maybe checking the last message he send could be a "all sort of problems" solution.
#!bin/bash
hexpubkey="0000005f87f64341c212cc93d6c266c03ae752c02660e78a6da1424f7b05c470"
lastmessage="nostreq --authors \"$hexpubkey\" --limit 1 --kinds 1 | nostcat wss://relay.nostr.band | jq -r '.[2].content'"
eval $lastmessage
Published at
2023-05-17 09:40:13Event JSON
{
"id": "05937fee9dd60dc51487bf1f236f1a56954e40651a9219b225a0f29ab7304562",
"pubkey": "0000005cc4586681ad8e7f4b75436fb7904b0e34ff072bb3406ddb90226d7eab",
"created_at": 1684316413,
"kind": 1,
"tags": [
[
"p",
"0000005f87f64341c212cc93d6c266c03ae752c02660e78a6da1424f7b05c470",
"",
"mention"
]
],
"content": "To prevent #[0] from flooding again, maybe checking the last message he send could be a \"all sort of problems\" solution.\n\n\n\n#!bin/bash\nhexpubkey=\"0000005f87f64341c212cc93d6c266c03ae752c02660e78a6da1424f7b05c470\"\nlastmessage=\"nostreq --authors \\\"$hexpubkey\\\" --limit 1 --kinds 1 | nostcat wss://relay.nostr.band | jq -r '.[2].content'\"\neval $lastmessage\n",
"sig": "96eb34f364f26f56a3d5da116e012d07f488ca43ef803007adf95408f5b5a2ced1be8d87f43f45844862fda9779c41f4a38f46f6985ee88cbd9e2c1da88438cc"
}