Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme structure and readability #470

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 40 additions & 29 deletions tools/README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,63 @@
# Repo Tools 🚀

Welcome to our repository! This guide will help you understand how to use our internal tools and to keep the repo tidy and up-to-date.
Welcome to our repository! This guide will help you understand how to use our internal tools and keep the repo tidy and up-to-date.

## How to Use These Tools 🛠️

These scripts are triggered when you comment on a pull request. To run a script, your comment must contain a specific command, and you must be listed in the `WIKI_REVIEWERS` secret. Only the line with the command will be processed, so feel free to write additional lines in your comment.
___
These scripts are triggered when you comment on a pull request. To run a script:

1. Your comment must contain a specific command.
2. You must be listed in the `WIKI_REVIEWERS` secret.
3. Only the line with the command will be processed, so feel free to write additional lines in your comment.

### Payout Calculation 💰

Use the `/payout` command to calculate payouts.
This command is used with following parameters:
Use the `/payout` command to calculate payouts. This command has the following parameters:

- `--rate` or `-r` to specify the rate.
- `--multiplier` or `-x` to specify the multiplier.

- `--rate` or `-r` to specify the rate
- `--multiplier` or `-x` to specify the multiplier
**Example:**

```bash
/payout -r 1 -x 2
```

This command calculates payout with `rate 1` and `multiplier 2`.

Example:
`/payout -r 1 -x 2` - this command calculates payout with `rate 1` and `multiplier 2`
___
### Quality Check 🧐

To check the quality of an article, use the `/articlecheck` command.

**Example:**

```bash
/articlecheck
```

<details>
<summary>How it works ❓</summary>
This script extracts the diff from the pull request, sends it to an AI service, and generates a comment based on the AI response. The process runs in the GitHub Actions environment and uses the Claude model with retriever functions and GPT for text comparison.
</details>

Example:
`/articlecheck`
___
### Market Health Reporter
### Market Health Reporter 📊

To get a market health report, use the `/analyze:` command.
This command is used with following parameters:
To get a market health report, use the `/analyze` command. This command includes the following parameters:

<details>
- **Parameters:**
- `pair`: The pair you want to analyze (e.g., `bnb-btc`).
- `market`: The market you're analyzing (e.g., `binance`).
- `start_of_the_period`: The start date of the period in `YYYY-MM-DD` format.
- `end_of_the_period`: The end date of the period in `YYYY-MM-DD` format.

<summary>Parameters ⚙️</summary>
**Example:**

| Parameter | Example |
|:-------------------------:|:------------:|
| `pair` | `bnb-btc` |
| `market` | `binance` |
| `start_of_the_period` | `2024-02-02` |
| `end_of_the_period` | `2024-02-07` |
```bash
/analyze: bnb-btc, binance, 2024-02-02, 2024-02-07
```

</details>
Follow this template: `/analyze: pair, market, start_of_the_period, end_of_the_period`
This command will analyze the specified pair on the given market between the start and end dates.

---

Example:
`/analyze: bnb-btc, binance, 2024-02-02, 2024-02-07`
We hope this guide helps you use our tools more effectively. If you have any questions or need further assistance, feel free to reach out.