R version of smack my bitch is ready
This commit is contained in:
parent
5082dc945f
commit
d9ac2b7ca2
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
library(httr)
|
||||
|
||||
today = Sys.Date()
|
||||
|
||||
|
|
@ -27,3 +27,8 @@ reasons = c(
|
|||
'Someone fucked the system again'
|
||||
)
|
||||
|
||||
POST(paste("https://api.twilio.com/2010-04-01/Accounts/",TWILIO_ACCOUNT_SID,"/Messages.json",sep=""),
|
||||
body = list(From=my_number,To=her_number,Body=sample(reasons,1) ),
|
||||
authenticate(TWILIO_ACCOUNT_SID,TWILIO_AUTH_TOKEN) )
|
||||
|
||||
print( paste("Message sent at",Sys.time()) )
|
||||
|
|
|
|||
Loading…
Reference in New Issue