Last active
November 4, 2018 21:47
-
-
Save thisismydesign/bda11066ea50b1d2b090cd2724bd0c7f to your computer and use it in GitHub Desktop.
AFK leveling in PoE in The Coward's Trial map with Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'file-tail' | |
require 'rb-notifu' | |
File.open("C:/Program Files (x86)/Grinding Gear Games/Path of Exile/logs/Client.txt") do |log| | |
log.extend(File::Tail) | |
log.backward(1).tail do |line| | |
Notifu::show :message => "NEXT ROOM", :type => :warn, :time => 5 do; end if line=~/The room grows still and quiet/ | |
Notifu::show :message => "DONE", :type => :warn, :time => 5 do; end if line=~/The oppressive atmosphere slowly dissipates/ | |
Notifu::show :message => "SOMEONE LEFT", :type => :warn, :time => 5 do; end if line=~/has left the area/ | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment