Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 431 Bytes
require '/misc/git/reby/time-in'
class TimeTeller
def initialize
$reby.bind( "pub", "-", "!time", "say_time", "$time_teller" )
@time = TimeIn.new
end
def put( message, destination = ( @channel || 'Pistos' ) )
$reby.putserv "PRIVMSG #{destination} :#{message}"
end
def say_time( nick, userhost, handle, channel, args )
put( @time.time_in( args.to_s ), channel )
end
end
$time_teller = TimeTeller.new
Something went wrong with that request. Please try again.