From 253396dd45ae797cbd8281096cf56600a55217a6 Mon Sep 17 00:00:00 2001 From: Leon Bartle <75068550+UraniumDonut@users.noreply.github.com> Date: Thu, 24 Jun 2021 10:24:51 +0200 Subject: [PATCH] Update fun.rb Self destruct (not actually destroying anything, add rm -r * if you're funky) --- lib/fun.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/fun.rb b/lib/fun.rb index 6707db6..20500ad 100755 --- a/lib/fun.rb +++ b/lib/fun.rb @@ -13,7 +13,13 @@ def self.interpret(command) say: [true,false].sample ? "Batman" : "Superman" } end - + + if command.match(/^self destruct$/i) + responses << { + say: "Initiating self destruct sequence..3..2..1..Boom!" + } + end + if command.match(/^what\s+if\s+batman\s+does\snot\s+have\s+a?n?y?\s*kryptonite$/i) responses << { say: "Batman always has kryptonite"