Source

dotfiles / bin / notify_me.rb

Full commit
#!/usr/bin/ruby

MATCHING_REGEX = /(@Ryan|ryan|Ryan)/

text_in = STDIN.read.strip

if text_in =~ MATCHING_REGEX
  `say "#{text_in}"`
end