Created
March 6, 2019 11:06
-
-
Save vestige/3961f9aa7540c083e07079a8c15af1dc 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
require 'unmo' | |
def prompt(unmo) | |
return unmo.name + ':' + unmo.responder_name + '>' | |
end | |
puts("Start Proto") | |
proto = Unmo.new('proto') | |
while true | |
print('> ') | |
input = gets | |
input.chomp! | |
break if input == '' | |
response = proto.dialogue(input) | |
puts(prompt(proto) + response) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment