- Add dream, set it's type, description
- Clear your dream history, delete last dream (I imagine that you will use it to correct mistakes)
- See your history of dreams
- See statistic
- You need your own bot token, get it there: https://t.me/BotFather.
- Make token.txt with only your bot token in the src folder.
- Make config.py with info about your database. Fields: user, password, host, db_name.
- Start the console in the main folder (SomnologBot) and start
python -m venv venv
(Windows) |python3 -m venv venv
(Linux) to install virtual environment. - Install requirements to your virtual environment. Activate venv through
call venv/Scripts/activate
(Windows) |source venv/bin/activate
(Linux). Usepip install -r requirements.txt
. - to start use
start_w.bat
(Windows) |bash ./start_l.sh
(Linux).
- MySQL is used for database.
- Aiogram is used for Bot.
You can see my database structure here: https://drawsql.app/teams/jpeg-jackals/diagrams/dreams.