thilp / vlb-rb

IRC bot for #vikidia
https://thilp.github.io/vlb-rb/
GNU General Public License v2.0
1 stars 2 forks source link

Grep #14

Open A-xis opened 9 years ago

A-xis commented 9 years ago

It should be a good idea to implemente some grep functionnality!

thilp commented 9 years ago

A !grep command is easy once we have:

In the current (rc) implementation, this is not cool because commands write their results directly to the Cinch framework, so VikiLinkBot::Shell has no way to redirect them (i.e. the pipe is impossible). However, on the dev branch, commands are iterators that simply emit text without bothering where it lands (and it's VikiLinkBot::Shell's job to transmit it to Cinch), so piping is definitely possible, easy and handy. Will do.