Skip to content

Update README.md to enhance bot setup instructions - #34

Merged
cofob merged 7 commits into
mainfrom
fix-readme-and-status
Sep 17, 2025
Merged

Update README.md to enhance bot setup instructions#34
cofob merged 7 commits into
mainfrom
fix-readme-and-status

Conversation

@skywinder

Copy link
Copy Markdown
Contributor
  • Revised database setup command to simplify usage.
  • Added detailed instructions for running the bot from the local directory, including options for building and running the release version and using Nix.
  • Improved clarity and organization of the bot setup section for better user experience.

- Revised database setup command to simplify usage.
- Added detailed instructions for running the bot from the local directory, including options for building and running the release version and using Nix.
- Improved clarity and organization of the bot setup section for better user experience.
@skywinder
skywinder requested a review from cofob September 10, 2025 17:11
@skywinder skywinder added the documentation Improvements or additions to documentation label Sep 10, 2025
… lease retrieval

- Introduced a new rule file for documenting Mikrotik REST API usage and fallback mechanisms.
- Enhanced the `get_leases` function to attempt HTTPS requests first, with automatic fallback to HTTP if HTTPS fails.
- Improved error handling and logging for network and HTTP status errors during lease retrieval.
- Updated the Mikrotik request logic to maintain legacy behavior while ensuring robust connectivity options.
@skywinder

Copy link
Copy Markdown
Contributor Author
CleanShot 2025-09-11 at 22 45 25@2x one more feature in last commit

@skywinder
skywinder force-pushed the fix-readme-and-status branch from 4c88027 to c925c07 Compare September 11, 2025 19:08
Comment thread src/modules/basic.rs
msg: Message,
state: Arc<RwLock<State>>,
) -> Result<()> {
// Log on-demand debug info and trigger an immediate Mikrotik check in background

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Осталось для дебага? Можно удалить?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, делал чтоб понять что происходит, пость остануться логи инфо/ - почему нет?

Comment thread src/utils/mikrotik.rs Outdated
}

// Try HTTPS first, then fall back to HTTP (some RouterOS setups disable HTTPS)
let leases_https = attempt(reqwest_client, conf, "https").await;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно просто добавить в конфиг возможность выбора http/https и всё

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

кажтеся усложнение немного, но добавил конфиг для выбора. давай мержить!

skywinder and others added 3 commits September 15, 2025 22:01
- Added sections for linting and code quality, detailing commands for checking linting rules and running tests.
- Included instructions for code formatting across multiple languages.
- Provided guidance on regenerating the database schema after migrations.
@cofob
cofob merged commit 7e0c5f6 into main Sep 17, 2025
2 checks passed
@cofob
cofob deleted the fix-readme-and-status branch September 17, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants