OppiWordsBot icon indicating copy to clipboard operation
OppiWordsBot copied to clipboard

Create setup script

Open loonydev opened this issue 6 years ago • 2 comments

For example, I want to fix something. I need to setup MySQL db with your schemes and it will be much easier if I just past my SQL creds in script and bot, if detect that db is not configured run some kind of init and create a table in DB

loonydev avatar Oct 23 '19 06:10 loonydev

Not sure how to do it properly. Ideally it needs to generate settings.py as well.

tezer avatar Oct 23 '19 13:10 tezer

Why not? Add gitignore on settings.py, when script start ask user to enter data like bot token (and print some help), after ask data for MySQL (or better SQLite) and fill the DB.

loonydev avatar Oct 23 '19 13:10 loonydev