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

Plugin config through chat cannot contain a line break after the plugin name #1298

Open
1 of 5 tasks
sheluchin opened this issue Feb 26, 2019 · 0 comments
Open
1 of 5 tasks

Comments

@sheluchin
Copy link
Contributor

I am...

  • Reporting a bug
  • Suggesting a new feature
  • Requesting help with running my bot
  • Requesting help writing plugins
  • Here about something else

I am running...

  • Errbot version: 5.1.1
  • OS version: Ubuntu 18.04.1
  • Python version: 3.6.6
  • Using a virtual environment: yes/no

Issue description

When running !plugin config <plugin-name>, you get a help message:

Default configuration for this plugin (you can copy and paste this directly as a command):

When configuring a plugin through chat (Slack backend), there can't be a line break after !plugin config <plugin-name>. This means that, because it contains a line break, you cannot copy and paste the default configuration template as the message suggests. If you put the configuration dict on the same line, all works fine; if you put the config on new line, you get:

Unknown plugin or the plugin could not load <plugin-name>.

Steps to reproduce

Configure a plugin from chat using the Slack backend (I'm not sure if applies to all backends), making sure to include a line break between the plugin name and config dict, like:

!plugin config foobar
{...}

You will get an error: Unknown plugin or the plugin could not load <plugin-name>.

Now remove the line break and try configuring again:

!plugin config foobar {...}

The configuration will succeed.

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

No branches or pull requests

2 participants