This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------ | |
/usr/local/bin/pip run on Sun Jan 11 11:00:14 2015 | |
Downloading/unpacking Django==1.6.5 (from -r requirements.txt (line 1)) | |
Getting page https://pypi.python.org/simple/Django/ | |
URLs to search for versions for Django==1.6.5 (from -r requirements.txt (line 1)): | |
* https://pypi.python.org/simple/Django/1.6.5 | |
* https://pypi.python.org/simple/Django/ | |
Getting page https://pypi.python.org/simple/Django/1.6.5 | |
Could not fetch URL https://pypi.python.org/simple/Django/1.6.5: 404 Client Error: Not Found | |
Will skip URL https://pypi.python.org/simple/Django/1.6.5 when looking for download links for Django==1.6.5 (from -r requirements.txt (line 1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Errors from terminal | |
jon@ubuntu:~/Downloads/TextQnA$ php sendtest.php | |
PHP Warning: require( /path/to/twilio-php/Services/Twilio.php): failed to open stream: No such file or directory in /home/jon/Downloads/TextQnA/sendtest.php on line 3 | |
PHP Fatal error: require(): Failed opening required ' /path/to/twilio-php/Services/Twilio.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/jon/Downloads/TextQnA/sendtest.php on line 3 | |
jon@ubuntu:~/Downloads/TextQnA$ cd | |
jon@ubuntu:~$ pear install twilio/Services_Twilio | |
twilio/Services_Twilio is already installed and is the same as the released version 3.12.1 | |
install failed | |
And now the code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'chatterbot/dsl' | |
# | |
# this is the script for the twitter bot MedbotQnA | |
# generated on 2013-10-30 15:11:13 +0000 | |
# | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jon@ubuntu:~$ rvm install 1.9.2 | |
Searching for binary rubies, this might take some time. | |
No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.9.2-p320. | |
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. | |
Checking requirements for ubuntu. | |
Installing requirements for ubuntu. | |
Updating system......... | |
Error running 'requirements_debian_update_system ruby-1.9.2-p320', | |
please read /home/jon/.rvm/log/1383333152_ruby-1.9.2-p320/update_system.log | |
Requirements installation failed with status: 100. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'chatterbot/dsl' | |
# | |
# this is the script for the twitter bot MedbotQnA | |
# generated on 2013-10-30 15:11:13 +0000 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loop do | |
puts "search for start tweets #{since_id}" | |
search "medbotqna SGUL finals 001" do |tweet| | |
reply "#{tweet_user(tweet)} Here is your question - SGUL finals", tweet | |
reply "#{tweet_user(tweet)} Mrs Jones is a 68 year old life long smoker who has an operation next week. To continue please reply with SGUL finals 002", tweet | |
end | |
puts "search for step 2 #{since_id}" |