Skip to content

feat: Integrate SQLite database and add backup/restore#4

Merged
Opselon merged 1 commit intomainfrom
feat-python-conversion
Nov 3, 2025
Merged

feat: Integrate SQLite database and add backup/restore#4
Opselon merged 1 commit intomainfrom
feat-python-conversion

Conversation

@Opselon
Copy link
Copy Markdown
Owner

@Opselon Opselon commented Nov 3, 2025

This commit integrates a SQLite database for managing server and user configurations, replacing the previous config.json-based system.

  • Server and user data are now stored in a database.db file.
  • The config.json file is now only used for the Telegram bot token.
  • A /backup command has been added to download the database file.
  • A /restore command has been added to upload and restore the database, followed by a bot restart.
  • The setup wizard has been updated to initialize the database and guide the user through the initial configuration.
  • The setup wizard now correctly creates the systemd service and cron job for auto-updates.

This commit integrates a SQLite database for managing server and user configurations, replacing the previous `config.json`-based system.

- Server and user data are now stored in a `database.db` file.
- The `config.json` file is now only used for the Telegram bot token.
- A `/backup` command has been added to download the database file.
- A `/restore` command has been added to upload and restore the database, followed by a bot restart.
- The setup wizard has been updated to initialize the database and guide the user through the initial configuration.
- The setup wizard now correctly creates the systemd service and cron job for auto-updates.
@Opselon Opselon merged commit a9331d4 into main Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant