Skip to content

Commit

Permalink
Get random reason easier
Browse files Browse the repository at this point in the history
  • Loading branch information
alexesprit committed Nov 29, 2015
1 parent ab3d661 commit fedb6fa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions powershell/smack_my_bitch_up.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,19 @@ if (-not (QWINSTA | FINDSTR $env:USERNAME)) {
$MY_NUMBER='+xxx'
$HER_NUMBER='+xxx'

$REASONS=
$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
Expand Down

0 comments on commit fedb6fa

Please sign in to comment.