File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -14,21 +14,19 @@ if (-not (QWINSTA | FINDSTR $env:USERNAME)) {
14
14
$MY_NUMBER = ' +xxx'
15
15
$HER_NUMBER = ' +xxx'
16
16
17
- $REASONS =
17
+ $REASONS =
18
18
' Working hard' ,
19
19
' Gotta ship this feature' ,
20
20
' Someone fucked the system again'
21
-
22
- $RAND = Get-Random - Maximum $REASONS.Count
23
-
24
- $MSG = " Late at work. $REASONS [$RAND ]"
21
+ $reason = $REASONS | Get-Random
22
+ $message = " Late at work. $reason ."
25
23
26
24
$API_URL = " https://api.twilio.com/2010-04-01/Accounts/$env: TWILIO_ACCOUNT_SID /Messages"
27
25
$BASE64AUTHINFO = [Convert ]::ToBase64String([Text.Encoding ]::ASCII.GetBytes((" {0}:{1}" -f $env: TWILIO_ACCOUNT_SID , $env: TWILIO_AUTH_TOKEN )))
28
26
$body = @ {
29
27
From = $MY_NUMBER ;
30
28
To = $HER_NUMBER ;
31
- Body = $MSG ;
29
+ Body = $message ;
32
30
}
33
31
34
32
# Send a text message and Log errors
You can’t perform that action at this time.
0 commit comments