archangelic / pinhook

the pluggable python framework for IRC bots and Twitch bots
https://archangelic.github.io/pinhook/
MIT License
31 stars 4 forks source link

Add ops annotation to plugin #48

Closed RussellChamp closed 5 years ago

RussellChamp commented 5 years ago

Allow a plugin to be registered as only runnable by the bot's op. it would add an automatic check of if msg.nick not in msg.ops; return before calling the plugin. maybe something like @pinhook.plugin.ops($message_what_gets_printed_if_a_non_op_tries = "") where None will result in no message. These op commands should probably also not be included in !help (maybe unless called by an op?)