this is Dota2 auto Accept script
this is Dota2 auto Accept script #!/bin/bash echo "Listening for Game pop." interface=org.freedesktop.Notifications member=Notify game="Your game is ready" # listen for DBus events, # each time we enter the loop, we just got an event # a positive match will be when the event message correspond to $game dbus-monitor "interface='$interface',member='$member'" | while read -r line; do if [[ $line == *"$game"* ]] then now=$(date +"%T") echo "$now Matchmaking is ready !"; #Auto-Accept Code xdotool search "Dota 2" windowactivate # Bring Dota2 to the front sleep 1 # wait 2 sec xdotool mousemove 864 509 click 1 sleep 0.2 xdotool click 1 sleep 0.2 xdotool mousemove 864 510 click 1 sleep 0.1 xdotool click 1 # telegram-cli -W -e "msg who message this here" > /dev/null fi done