Skip to content

Commit

Permalink
donation click adds runonce hash for later use maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot authored and theofficialgman committed Jan 25, 2025
1 parent c5bdb87 commit 07ffc0d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manage
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,15 @@ ${DIRECTORY}/icons/none-1.png
export gman_message='to theofficialgman (notable Pi-Apps contributor)'
summary_window_click_function() {
if [ "$5" == "$botspot_message" ];then
xdg-open 'https://github.com/sponsors/botspot'
xdg-open 'https://github.com/sponsors/botspot' &

#remember that donation link was clicked - opts out of any popups introduced in the future
#"$(echo 'botspot donation click' | sha1sum | awk '{print $1}')"
if ! grep -q "8a780b08ac20332b897ecb399b25f4622bb31341" "${DIRECTORY}/data/runonce_hashes" ;then
echo "8a780b08ac20332b897ecb399b25f4622bb31341" >> "${DIRECTORY}/data/runonce_hashes"
fi
elif [ "$5" == "$gman_message" ];then
xdg-open 'https://github.com/sponsors/theofficialgman'
xdg-open 'https://github.com/sponsors/theofficialgman' &
fi
}
export -f summary_window_click_function
Expand Down

0 comments on commit 07ffc0d

Please sign in to comment.