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

Allow disabling or overriding the !help command #47

Closed RussellChamp closed 5 years ago

RussellChamp commented 5 years ago

By default, a '!help' command is registered for all bots that enumerate all the plugins that they respond to. I would like a way to either disable or override the default '!help' command. This is useful for the cases where I do not want all my plugin functionality made public or do not want my bot to respond to a !help

archangelic commented 5 years ago

The way I did this with adminbot is that there is an overwritable call_help method in pinhook.bot.Bot

So you can do:

from pinhook.bot import Bot

class MyBot(Bot):
def call_help(self):
    # Your help stuff here

This is a little advanced but does offer a way to overwrite it or disable it. More features in this department would be welcome though.