nicholasf / spoonbot

Spoonbot - an IRC bot written in Elixir with a simple command syntax.
16 stars 6 forks source link

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

Open nicholasf opened 10 years ago

nicholasf commented 10 years ago

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