Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Automate the setup process for new users #11

Open
Shankhanil opened this issue Apr 12, 2020 · 5 comments
Open

Automate the setup process for new users #11

Shankhanil opened this issue Apr 12, 2020 · 5 comments
Assignees

Comments

@Shankhanil
Copy link
Contributor

For new users wanting to use the bot, setting up the bot might be a bit intimidating. This issue deals with automating the setup process for new users, with interactive walkthrough

@n0toose n0toose linked a pull request Apr 12, 2020 that will close this issue
@n0toose n0toose removed a link to a pull request Apr 12, 2020
@n0toose
Copy link
Owner

n0toose commented Apr 13, 2020

So, here's an interesting approach; the bot should prompt the user to enter their own details inside of the bot, if they haven't provided any credentials. This would make the bot very easy to use-- just run python3 bot.py and paste what it asks from you! The bot will then have to write the values inside of a configuration file.

If there's any exception when logging in, the bot should handle that by removing the credentials and asking for them again. This should only happen if the user hasn't provided any environment variables or if they haven't entered anything in the configuration file-- in either case, the login should proceed as normal.

I'll add labels to this issue in order to attract people to it as soon as #13 gets merged, because the configuration system is currently being worked on.

@Shankhanil
Copy link
Contributor Author

This is exactly the approach that I was thinking about. I am working on this approach now. I will make necessary changes when #13 gets merged.

@AlwaysLivid

@Shankhanil
Copy link
Contributor Author

I will begin working on this one @AlwaysLivid

@n0toose
Copy link
Owner

n0toose commented Apr 19, 2020

I will begin working on this one @AlwaysLivid

Good. Make sure to introduce an environment variable that skips this, in case the bot is either in a continuous environment or in a Heroku instance.

@Shankhanil
Copy link
Contributor Author

Let me know if there's a test to check that. @AlwaysLivid

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

No branches or pull requests

2 participants