Sha256: 40023c9494f37cca479f7c770fffed457e3c3f87b3bd8df11fc1b5b086f85617
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
# frozen_string_literal: true Ego.plugin do |robot| robot.can 'output text to the terminal' # Provide #say, #emote, #alert, and #debug robot.extend(Ego::Printer) # A verbose robot doesn't suppress #debug output robot.provide :verbose? do @options.verbose end robot.can 'repeat what you say' robot.on(/^(?:say|echo)\s+(?<input>.+)/i) do |input| say input end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ego-0.6.0 | lib/ego/plugins/robot_io.rb |