Skip to content

Instantly share code, notes, and snippets.

@thisismydesign
Last active November 4, 2018 21:47
Show Gist options
  • Save thisismydesign/bda11066ea50b1d2b090cd2724bd0c7f to your computer and use it in GitHub Desktop.
Save thisismydesign/bda11066ea50b1d2b090cd2724bd0c7f to your computer and use it in GitHub Desktop.
AFK leveling in PoE in The Coward's Trial map with Ruby
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