Skip to content

Instantly share code, notes, and snippets.

@cdcarter
Created December 11, 2012 22:03
Show Gist options
  • Save cdcarter/4262695 to your computer and use it in GitHub Desktop.
Save cdcarter/4262695 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
require 'rubygems'
require 'twilio-ruby'
@account_sid = 'AC2947631da1d0049dd4b73646a107f33b'
@auth_token = '' #twilio auth token
@phonenumber = '' #recipient phone
# set up a client to talk to the Twilio REST API
@client = Twilio::REST::Client.new(@account_sid, @auth_token)
TEXTS = ["Don't do something stupid.","Have you said Yo to Faye lately?","Who is your favorite freshman? Meet a new one!","Bitches wanna be me bitches wanna be me!","Live you best life!",
"Don't make Future Christian hate Current Christian!","You're graduating in just like 100 days, so don't fuck it up now!","Keep your eyes on the prize!","Make a commitment to yourself...",
"The semester is so close to over.","Don't do anything dumb!","Check yourself BEFORE you wreck yourself."].shuffle!
while TEXTS.length > 0 do
@account = @client.account
@message = @account.sms.messages.create({:from => '+16174407923', :to => @phonenumber, :body => TEXTS.pop})
puts @message
sleep 1200
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment