2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-22 18:37:10 +00:00

Log the reason in smack_my_bitch_up.rb

This commit is contained in:
JrSchild 2015-11-25 11:18:30 +01:00
parent c6373cc762
commit 5f4311afbb

View File

@ -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