Created
October 31, 2013 17:47
-
-
Save JonHilton/7253954 to your computer and use it in GitHub Desktop.
This file contains 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}" | |
search "medbotqna SGUL finals 002" do |tweet| | |
reply "#{tweet_user(tweet)} She reports a two week history of increasing productive cough and is keen for her operation to go ahead next week.", tweet | |
reply "#{tweet_user(tweet)} On examination HR 100 BP 165/105 SatO2 93 Mild added sounds bilaterally. To continue please reply with SGUL finals 003", tweet | |
end | |
puts "search for step 3 #{since_id}" | |
search "medbotqna SGUL finals 003" do |tweet| | |
reply "#{tweet_user(tweet)} Which of the following is the most appropriate course of action? | |
A) Post-pone the operation | |
B) Prescribe cefuroxime. C)Prescribe doxycycline", tweet | |
reply "#{tweet_user(tweet)} D) Tell her that she doesn't need Abx | |
E) Take a history & examination | |
For the answer reply with SGUL finals 004", tweet | |
end | |
puts "search for step 4 #{since_id}" | |
search "medbotqna SGUL finals 004" do |tweet| | |
reply "#{tweet_user(tweet) } The answer is C - prescribe doxycycline. This is an infection of low severity and so narrow spectrum Abx should be used.", tweet | |
end | |
update_config | |
sleep 60 | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attempt to make a twitter bot using chatterbot for medical student revision. The bot is designed to be a revision aid for medical students and to reply to a user when they ask for a question.
Brand new to ruby so I expect the trouble I'm having is down to my inexperience more than anything to do with the chatterbot.