2023-12-26 16:51:22 +00:00
|
|
|
# Swordfish
|
|
|
|
|
|
|
|
An open-source bot which helps you to choose best swords for fishes around the world.
|
|
|
|
|
2024-01-04 18:35:48 +00:00
|
|
|
## Features
|
|
|
|
|
|
|
|
+ Faster than Leg (hopefully)
|
|
|
|
+ Written in Rust
|
|
|
|
+ Open source
|
|
|
|
+ ... more in the future
|
|
|
|
|
2023-12-26 16:51:22 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
TODO:tm:
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2024-01-04 18:35:48 +00:00
|
|
|
1. Install required dependencies (Tesseract, MongoDB)
|
|
|
|
|
|
|
|
There are various way to install them, but so far on Arch Linux you would execute the following commands:
|
|
|
|
```bash
|
|
|
|
sudo pacman -S tesseract tesseract-data-eng
|
|
|
|
yay -S mongodb-bin
|
|
|
|
# Optional
|
|
|
|
yay -S mongodb-compass # Manage the database with a GUI
|
|
|
|
```
|
|
|
|
> Tesseract works on Linux way better than Windows, but oh well.
|
|
|
|
2. Clone the repository.
|
2023-12-26 16:51:22 +00:00
|
|
|
3. Set up your MongoDB database.
|
2024-01-04 18:35:48 +00:00
|
|
|
> The free tier in MongoDB Atlas is NOT enough as it is limited to 500 entries only.
|
2023-12-26 16:51:22 +00:00
|
|
|
4. Set up the required environment variables, which contains these variables:
|
2024-01-04 18:35:48 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
# Putting all of these into a .env file is fine.
|
|
|
|
DISCORD_TOKEN=<token>
|
|
|
|
MONGODB_URL=<mongodb url>
|
|
|
|
# Optional, only if the url doesn't contain a username.
|
|
|
|
MONGODB_USERNAME=<mongodb username>
|
|
|
|
# Optional, only if the url doesn't contain a password.
|
|
|
|
MONGODB_PASSWORD=<mongodb password>
|
|
|
|
```
|
2023-12-26 16:51:22 +00:00
|
|
|
5. Start the bot:
|
2024-01-04 18:35:48 +00:00
|
|
|
```bash
|
|
|
|
cargo run
|
|
|
|
```
|
2023-12-26 16:51:22 +00:00
|
|
|
|
|
|
|
## FAQ
|
|
|
|
|
|
|
|
### How does it work?
|
|
|
|
|
|
|
|
It'd be the same as Nori in general.
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[GNU AGPLv3](./LICENSE)
|
|
|
|
|
|
|
|
![GNU AGPL](https://www.gnu.org/graphics/agplv3-with-text-162x68.png)
|