Module Irc::Utils
In: rbot/utils.rb
Class: JoinMessage Class: PartMessage Class: Plugins Class: KickMessage Class: IrcAuth Class: IRCChannel Class: IrcSocket Class: BotConfig Class: Keywords Class: BotRegistryAccessor Class: IrcClient Class: DBHash Class: Language Class: TopicMessage Class: QuitMessage Class: PrivMessage Class: UserMessage Class: NoticeMessage Class: IrcBot Class: BasicUserMessage Class: NickMessage Class: Plugin Class: BotRegistry Class: Keyword Class: DBTree Module: Irc

miscellaneous useful functions

get_metar    http_get    safe_exec    secs_to_string    timestr_offset   
Classes and Modules
Class Irc::Utils::Metar
Public Class methods

read a time in string format, turn it into "seconds from now". example formats handled are "5 minutes", "2 days", "five hours", "11:30", "15:45:11", "one day", etc.

Throws:RunTimeError "invalid time string" on parse failure

turn a number of seconds into a human readable string, e.g 2 days, 3 hours, 18 minutes, 10 seconds

safe_exec(command, *args)
http_get(uristr, readtimeout=8, opentimeout=4)

returns a string containing the result of an HTTP GET on the uri