2021-09-24 19:13:12 +00:00
|
|
|
# musicube
|
|
|
|
|
|
|
|
### Development
|
|
|
|
|
|
|
|
Requirements:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ python --version
|
|
|
|
3.9.7
|
|
|
|
```
|
|
|
|
|
|
|
|
Configure virtual environment:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ python -m venv venv
|
|
|
|
$ source venv/bin/activate
|
|
|
|
```
|
|
|
|
|
|
|
|
Install requirements:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
Configure ENV:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ cp .env.template .env
|
|
|
|
# Write BOT_TOKEN into .env
|
|
|
|
```
|
|
|
|
|
|
|
|
Run bot:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ python src/bot.py
|
|
|
|
```
|
2021-09-25 20:46:45 +00:00
|
|
|
|
|
|
|
### Deployment
|
|
|
|
|
|
|
|
Requirements:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ docker --version
|
|
|
|
Docker version 20.10.8, build 3967b7d28e
|
|
|
|
```
|
|
|
|
|
|
|
|
Build image:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ make build
|
|
|
|
```
|