reaktor2 confuse: allow usage only in public channel

This commit is contained in:
lassulus 2022-11-22 20:36:23 +01:00
parent 6e75d54c6b
commit bd6b355a89

View File

@ -64,12 +64,16 @@ let
pkgs.gnused pkgs.gnused
pkgs.stable-generate pkgs.stable-generate
]} ]}
stable_url=$(stable-generate "$@") if [ $_msgtarget = '#krebs' ] || [ $_msgtarget = '#xxx' ]; then
paste_url=$(curl -Ss "$stable_url" | stable_url=$(stable-generate "$@")
curl -Ss https://p.krebsco.de --data-binary @- | paste_url=$(curl -Ss "$stable_url" |
tail -1 curl -Ss https://p.krebsco.de --data-binary @- |
) tail -1
echo "$_from: $paste_url" )
echo "$_from: $paste_url"
else
echo "please use me in a public channel"
fi
''; '';
}; };
}; };