cinchrb / cinch

The IRC Bot Building Framework
http://www.rubydoc.info/gems/cinch
MIT License
1k stars 180 forks source link

How create an event for all message sended ? #234

Closed ghost closed 7 years ago

ghost commented 7 years ago

The question is in the title !

Thanks. Arck

Daniel-Worrall commented 7 years ago

Github Issues are not the place to be asking these kinds of "How-to" questions, but I'll answer regardless. In future, please direct your queries towards #cinch on Freenode IRC.

on :message, // do |m|
  m.reply 'A MESSAGE!'
end

Edit: you can probably do without // but I haven't tested.