2
0
mirror of https://github.com/narkoz/hacker-scripts synced 2025-08-23 10:57:13 +00:00

Get random reason easier

This commit is contained in:
alexesprit 2015-11-30 00:19:03 +03:00
parent ab3d661212
commit fedb6faca1

View File

@ -18,17 +18,15 @@ $REASONS=
'Working hard',
'Gotta ship this feature',
'Someone fucked the system again'
$RAND = Get-Random -Maximum $REASONS.Count
$MSG="Late at work. $REASONS[$RAND]"
$reason = $REASONS | Get-Random
$message = "Late at work. $reason."
$API_URL = "https://api.twilio.com/2010-04-01/Accounts/$env:TWILIO_ACCOUNT_SID/Messages"
$BASE64AUTHINFO = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $env:TWILIO_ACCOUNT_SID,$env:TWILIO_AUTH_TOKEN)))
$body = @{
From = $MY_NUMBER;
To = $HER_NUMBER;
Body = $MSG;
Body = $message;
}
#Send a text message and Log errors