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

Use arguments when running bot #186

Open
soskek opened this issue Jun 18, 2019 · 1 comment
Open

Use arguments when running bot #186

soskek opened this issue Jun 18, 2019 · 1 comment

Comments

@soskek
Copy link

soskek commented Jun 18, 2019

Hi,

can we give some parameters to a bot when running?
It is useful for easy switching of parameters in the bot.

For example, what I want is like the below (I know this doesn't work)

bot = Bot()
bot.run(port=23456, emotion="angry", max_timeout=10)
@bsima
Copy link

bsima commented Jul 29, 2019

This would be the correct way to handle configuration. Currently, the slackbot_settings module is hardcoded to load dynamically, but if you have a build system that puts things in non-standard places (as I do) then this will break.

In fact I'm currently patching the slackbot.settings module to load slackbot_settings from our namespace (our build system prefixes modules with the company name, like Company.Project.slackbot_settings).

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

No branches or pull requests

2 participants