Class: Atig::Command::Limit
Instance Attribute Summary
Attributes inherited from Command
#api, #db, #gateway, #opts
Instance Method Summary
collapse
Methods inherited from Command
#find_by_tid, #initialize
Instance Method Details
#action(target, mesg, command, args) {|"#{api.remain} / #{api.limit} (reset at #{::Time.at(api.reset).strftime('%Y-%m-%d %H:%M:%S')})"| ... } ⇒ Object
10
11
12
|
# File 'lib/atig/command/limit.rb', line 10
def action(target, mesg, command, args)
yield "#{api.remain} / #{api.limit} (reset at #{::Time.at(api.reset).strftime('%Y-%m-%d %H:%M:%S')})"
end
|
#command_name ⇒ Object
8
|
# File 'lib/atig/command/limit.rb', line 8
def command_name; %w(rls limit limits) end
|