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

Improve console channel argument handling #16

Open
nicolasbotanic opened this issue Oct 31, 2018 · 0 comments
Open

Improve console channel argument handling #16

nicolasbotanic opened this issue Oct 31, 2018 · 0 comments

Comments

@nicolasbotanic
Copy link
Collaborator

nicolasbotanic commented Oct 31, 2018

Implement argparse.ArgumentParser to set individually all arguments needed for the python script.

Add chatbotengine and update userid, botid and orgid to be optional.

  • chatbotengine: it will set/override chatbotengine value on the .Bot object
  • userid: default should be a string with the prefix consoleanon and an alphanumeric secuence of 14 chars
  • botid: default should be None. When botid is None the script, obviously, should not try to retrieve any bot from the database. Instead it should define a .Bot object at runtime (no database involved, just a variable) with the defined engine from the argument 'chatbotengine'. In this case there will be no conversation flow so any attemp to talk to the bot will raise an exception from the chatbot engine. But you can run commands like :variables and :df2 on dotflow2 chatbot engine
  • orgid: this id is not supported yet, so it can be set by default as 1
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

1 participant