class Cogs::Cog
Attributes
fp[RW]
name[RW]
Public Class Methods
new(bot)
click to toggle source
# File lib/cogsdrb.rb, line 8 def initialize(bot) @bot = bot end
Public Instance Methods
command(name, attributes = {}, &block)
click to toggle source
# File lib/cogsdrb.rb, line 15 def command(name, attributes = {}, &block) attributes[:cog] = @name unless attributes[:cog] @bot.command(name, attributes, &block) end
commands()
click to toggle source
# File lib/cogsdrb.rb, line 20 def commands; end