From 5f4311afbbb5790dc53466124ae8de588baec703 Mon Sep 17 00:00:00 2001 From: JrSchild Date: Wed, 25 Nov 2015 11:18:30 +0100 Subject: [PATCH] Log the reason in smack_my_bitch_up.rb --- smack_my_bitch_up.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smack_my_bitch_up.rb b/smack_my_bitch_up.rb index 8cddd7d..0fc5bae 100755 --- a/smack_my_bitch_up.rb +++ b/smack_my_bitch_up.rb @@ -33,11 +33,14 @@ reasons = [ 'Someone fucked the system again' ] +sample = reasons.sample + # Send a text message @twilio.messages.create( - from: my_number, to: her_number, body: 'Late at work. ' + reasons.sample + from: my_number, to: her_number, body: 'Late at work. ' + sample ) # Log this LOG_FILE.puts("Message sent at: #{Time.now}") +LOG_FILE.puts("Reason: #{sample}") LOG_FILE.close