spoonbot icon indicating copy to clipboard operation
spoonbot copied to clipboard

the bot should let scripters have finer grained control over how it replies

Open nicholasf opened this issue 11 years ago • 0 comments

Each bridge might have a number of reply mechanisms - for example, the IRC bridge would let the bot reply to a speaker via the public channel or via private message.

One of way of achieving this would be to change the return parameter from the inline function in the command.

command "update me", fn(speaker) -> { :msg, "an update } end
command "update all", fn(speaker) -> { :channel, "an update } end

nicholasf avatar Jun 05 '14 01:06 nicholasf