frickkkkkkkkkkk
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ send_discord_webhook() {
|
|||||||
|
|
||||||
while true; do #infinite loop
|
while true; do #infinite loop
|
||||||
# scan for those vendor ids
|
# scan for those vendor ids
|
||||||
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep -q ${vendor_ids[@]/#/-e }")
|
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/-e }")
|
||||||
if [ -n "$blescan" ]; then
|
if [ -n "$blescan" ]; then
|
||||||
# LE detected poweroff to cryptdisk and notify
|
# LE detected poweroff to cryptdisk and notify
|
||||||
# alert spammmm
|
# alert spammmm
|
||||||
|
|||||||
@@ -27,14 +27,14 @@ if [ ! -d "$store_path" ]; then
|
|||||||
sudo mkdir -p "$store_path"
|
sudo mkdir -p "$store_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$discord_file" ]; then
|
if [ ! -f "$webhook_file" ]; then
|
||||||
echo -e "Enter Discord Webhook URL\n\tRight click on server->server settings->integrations"
|
echo -e "Enter Discord Webhook URL\n\tRight click on server->server settings->integrations"
|
||||||
read discord_webhook
|
read discord_webhook
|
||||||
sudo bash -c "echo \"$discord_webhook\" > \"$webhook_file\""
|
sudo bash -c "echo \"$discord_webhook\" > \"$webhook_file\""
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$discord_tag" ]; then
|
if [ ! -f "$tag_file" ]; then
|
||||||
echo -e "Enter Discord Member group to tag\n\tuse a backslash when tagging the roll like \\@notifications"
|
echo -e "Enter Discord Member group to tag\n\tuse a backslash when tagging the roll like \\@notifications"
|
||||||
read discord_tag_file
|
read discord_tag_file
|
||||||
sudo bash -c "echo \"$discord_tag_file\" > \"$tag_file\""
|
sudo bash -c "echo \"$discord_tag_file\" > \"$tag_file\""
|
||||||
|
|||||||
Reference in New Issue
Block a user