Skip to content

Commit

Permalink
Merge pull request #115 from amirhoseinsalimi/fix/sqlite-migration-cl…
Browse files Browse the repository at this point in the history
…ean-up

fix: clean up sqlite migration
  • Loading branch information
amirhoseinsalimi authored Aug 28, 2023
2 parents 372d178 + e0b3d55 commit fabd8a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export BOT_USERNAME="@MusicToolBot"
export BOT_TOKEN=

# Database
export DB_HOST=localhost
export DB_PORT=3306
export DB_USERNAME=
export DB_PASSWORD=
export DB_NAME=

# DONATION
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,5 @@ dmypy.json
# Cython debug symbols
cython_debug/

music_tool_bot
TODOS
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ Supports 2 languages for now: **English** and **Persian**. ([Add more if you wan
### Requirements to run this bot

1. Python 3.8 (Preferably)
2. ffmpeg
3. `venv` and `pipenv`
4. Optionally you can install `pm2` (globally) which is a Node.js module to manage processes. Since `pm2` can also
2. SQLite
3. `ffmpeg`
4. `venv` and `pipenv`
5. Optionally you can install `pm2` (globally) which is a Node.js module to manage processes. Since `pm2` can also
manage Python processes, I use it to run the bot in production. No Node.js/JavaScript knowledge is required. Just
install `pm2` and run convenient script runners using pipenv. If you want to run the bot using other process
managers, that's fine.
Expand Down Expand Up @@ -41,10 +42,6 @@ Supports 2 languages for now: **English** and **Persian**. ([Add more if you wan
| BOT_NAME | `str` | The name of the bot |
| BOT_USERNAME | `str` | The username of the bot. This username is sent as signature in captions. |
| BOT_TOKEN | `str` | The bot token you grabbed from @BotFather |
| DB_HOST | `str` | Database host |
| DB_PORT | `int` | Database port |
| DB_USERNAME | `str` | Database username |
| DB_PASSWORD | `str` | Database password |
| DB_NAME | `str` | Database name. Read the next step for more information. |
| BTC_WALLET_ADDRESS | `str` | BTC wallet address to receive donations. |
| ETH_WALLET_ADDRESS | `str` | ETH wallet address to receive donations. |
Expand Down

0 comments on commit fabd8a0

Please sign in to comment.