Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to disable modules modules / modules methods per channel #1228

Closed
wants to merge 4 commits into from
Closed

Conversation

lenisko
Copy link
Contributor

@lenisko lenisko commented Sep 22, 2017

Ability to disable modules or even methods inside chosen modules for channel name using default configuration file.

In this example we are disabling modules / modules methods on #example channel.
disable_modules is used to completely disable provided modules on channel for example choice, weather won't respond at all.

disable_commands is used to disable methods from provided modules for example event_watcher from url module which means all other methods should work (unless disabled are needed).

Adding other channel excludes is as simple as adding another section named like channel.

...

[#example]
disable_modules = choice,weather
disable_commands = {"url": ["event_watcher"]}

@lenisko
Copy link
Contributor Author

lenisko commented Sep 22, 2017

ah sorry, by mistake I have also added help.py change in this PR. I'll close old one then #1227

@dgw
Copy link
Member

dgw commented Sep 22, 2017

That'll happen if you open pull requests from your default branch. :)

@lenisko
Copy link
Contributor Author

lenisko commented Dec 4, 2017

I'll push it one more time

@lenisko lenisko closed this Dec 4, 2017
@dgw
Copy link
Member

dgw commented Mar 29, 2018

Note from the future: This was replaced by #1235.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants