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.stable-generate
]}
stable_url=$(stable-generate "$@")
paste_url=$(curl -Ss "$stable_url" |
curl -Ss https://p.krebsco.de --data-binary @- |
tail -1
)
echo "$_from: $paste_url"
if [ $_msgtarget = '#krebs' ] || [ $_msgtarget = '#xxx' ]; then
stable_url=$(stable-generate "$@")
paste_url=$(curl -Ss "$stable_url" |
curl -Ss https://p.krebsco.de --data-binary @- |
tail -1
)
echo "$_from: $paste_url"
else
echo "please use me in a public channel"
fi
'';
};
};