nado / go-b0tsec

A pretty simple IRC Bot with plugins and middlewares.
Do What The F*ck You Want To Public License
0 stars 0 forks source link

Admin plugin #1

Closed nado closed 8 years ago

nado commented 8 years ago

Plugin to enable/disable plugins while the bot is running like !plugins +yt -ddg +title

depado commented 8 years ago

Seems like a tricky one actually. There will be the need to check for admin rights, querying the server directly for the nickname who is performing the request. This can't be achieved with a plugin (plugins don't expect responses) More like something in the core.

nado commented 8 years ago

Alright, I haven’t thought a lot about this yet, this issue was more like a reminder to me, but you are right.

nado commented 8 years ago

https://github.com/nado/go-b0tsec/commit/2715a865c3f3832e7e42565c9288d4f2e4f9a791 is a first step towards dynamic plugins (de)activation

depado commented 8 years ago

Very nice :)

nado commented 8 years ago

https://github.com/nado/go-b0tsec/commit/2a74fb537f2bcfe08f0655420d7497b53aae2d7c plugins are fully managed with this commit.