fix
This commit is contained in:
parent
72e5acdd4d
commit
5ce7a2af0d
2
block.sh
2
block.sh
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
HEX=$(nak decode $1 | jq ".pubkey" | sed 's/"//i' | sed 's/"//i')
|
||||
echo "Adding $1 to block list"
|
||||
sed -i "30a '$HEX'," /opt/strfry-policies/strfry-policy.ts
|
||||
sed -i "50a '$HEX'," /opt/strfry-policies/strfry-policy.ts
|
||||
|
@ -15,7 +15,17 @@ var rainbow_count = (content.match(/🌈/g) || []).length;
|
||||
var happy_count = (content.match(/😀/g) || []).length;
|
||||
var hundred_count = (content.match(/💯/g) || []).length;
|
||||
var party_count = (content.match(/🎉/g) || []).length;
|
||||
var thinking_count = (content.match(/🤔/g) || []).length;
|
||||
var limit = 1;
|
||||
|
||||
if ( thinking_count > 0 && hundred_count > 0 ) {
|
||||
return {
|
||||
id,
|
||||
action: 'reject',
|
||||
msg: 'ReplyGuy Dual Emoji Policy: Blocked!',
|
||||
};
|
||||
}
|
||||
|
||||
if ( happy_count > 0 && happy_count > 0 && fire_count > 0 ) {
|
||||
return {
|
||||
id,
|
||||
|
Loading…
Reference in New Issue
Block a user