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
#!/usr/bin/env ruby | |
domain, room, *message = ARGV | |
token = File.read(ENV['HOME'] + '/.talker').strip | |
abort <<-TEXT unless domain && room && token | |
Usage: #{File.basename($0)} domain room_id [message] | |
Reads from stdin if no message supplied | |
Expects a user token in $HOME/.talker | |
TEXT |