Skip to content

Instantly share code, notes, and snippets.

@vestige
Created March 6, 2019 11:06
Show Gist options
  • Save vestige/3961f9aa7540c083e07079a8c15af1dc to your computer and use it in GitHub Desktop.
Save vestige/3961f9aa7540c083e07079a8c15af1dc to your computer and use it in GitHub Desktop.
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