Skip to content

Commit

Permalink
Log the reason in smack_my_bitch_up.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
JrSchild committed Nov 25, 2015
1 parent c6373cc commit 5f4311a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smack_my_bitch_up.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@
'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

0 comments on commit 5f4311a

Please sign in to comment.