2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 19:07:33 +00:00

Merge pull request #36 from JrSchild/master

Log the reason in smack_my_bitch_up.rb
This commit is contained in:
Nihad Abbasov 2015-11-25 20:36:47 +04:00
commit f560977681

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