tezer / OppiWordsBot

A Telegram bot for learning languages
GNU Affero General Public License v3.0
19 stars 8 forks source link

Create setup script #10

Open loonydev opened 5 years ago

loonydev commented 5 years ago

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

tezer commented 5 years ago

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

loonydev commented 5 years ago

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.