lib/sweetie_bot.rb
# Gracefully stops and disconnects all the bot instances.
# @note Must be connected before disconnecting.
Gracefully stops and disconnects all the bot instances.
Gracefully stops and disconnects all the bot instances .
def stop!
    @connections.each do |connection|
      puts "  -> stopping '#{connection.connection_id}'"
      connection.disconnect
    end
    SweetieBot.log 'Stopped.'
  end
def stop! @connections . each do | connection | puts "  -> stopping '#{connection.connection_id}'" connection . disconnect end SweetieBot . log 'Stopped.' end
Gracefully stops and disconnects all the bot instances.
Gracefully stops and disconnects all the bot instances .
note
Must be connected before disconnecting.
Must be connected before disconnecting .