lib/sweetie_bot.rb
# Adds a custom message handler, which isn't necessarily a command.
# @yield [msg] callback to be called when a message is sent.
# @yieldparam [Discordrb::Events::MessageEvent] msg message event.
Adds a custom message handler, which isn't necessarily a command.
Adds a custom message handler which isn ' t necessarily a command .
def handler
    @handlers.push(proc do |msg|
      yield msg
    end)
  end
def handler @handlers . push ( proc do | msg | yield msg end ) end
Adds a custom message handler, which isn't necessarily a command.
Adds a custom message handler which isn ' t necessarily a command .
]
<not_specific>
callback to be called when a message is sent.
callback to be called when a message is sent .
<not_specific>
msg message event.
msg message event .