def quit(bot, bang) bot.message(with_text: "#{bang}Quit") do |event| break unless event.user.id == 185533351866662913 bot.send_message(event.channel.id, 'Bot is shutting down') bot.stop end end