Method: Cogs::Cog#command

Defined in:
lib/cogsdrb.rb

#command(name, attributes = {}, &block) ⇒ Object



15
16
17
18
# File 'lib/cogsdrb.rb', line 15

def command(name, attributes = {}, &block)
    attributes[:cog] = @name unless attributes[:cog]
    @bot.command(name, attributes, &block)
end