StalkR / goircbot

Go IRC Bot
https://godoc.org/github.com/StalkR/goircbot
Apache License 2.0
36 stars 8 forks source link

bot: add plugin option to receive all messages. #4

Closed wathiede closed 10 years ago

wathiede commented 10 years ago

Allows plugins to passively consume messages without being directly addressed.

StalkR commented 10 years ago

The command logic was intended for explicit, directed commands. For plugins who need to consume all messages, you can already use goirc's generic HandleFunc https://github.com/fluffle/goirc/blob/master/client/dispatch.go#L153. Some plugins already do that:

I wonder if your use case could be addressed with this. Do you have a plugin example to show how your proposed changed is used?

StalkR commented 10 years ago

Replied on the CL directly, we can continue there.