{"id":20144879,"url":"https://github.com/alextraveylan/solgard-bot-last-refactoring","last_synced_at":"2026-04-27T18:05:45.108Z","repository":{"id":167153678,"uuid":"622653356","full_name":"AlexTraveylan/solgard-bot-last-refactoring","owner":"AlexTraveylan","description":"A discord bot scraping Solgard. And use this data for help the guild.","archived":false,"fork":false,"pushed_at":"2023-08-06T23:16:32.000Z","size":1159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T11:49:50.502Z","etag":null,"topics":["bot","discord","machine-learning","optimization","python","scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexTraveylan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-02T18:31:27.000Z","updated_at":"2024-03-04T22:31:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f1d4f54-ec1c-4268-a0d4-9697e395c408","html_url":"https://github.com/AlexTraveylan/solgard-bot-last-refactoring","commit_stats":null,"previous_names":["alextraveylan/solgard-bot-last-refactoring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexTraveylan/solgard-bot-last-refactoring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTraveylan%2Fsolgard-bot-last-refactoring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTraveylan%2Fsolgard-bot-last-refactoring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTraveylan%2Fsolgard-bot-last-refactoring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTraveylan%2Fsolgard-bot-last-refactoring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexTraveylan","download_url":"https://codeload.github.com/AlexTraveylan/solgard-bot-last-refactoring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexTraveylan%2Fsolgard-bot-last-refactoring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32348058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord","machine-learning","optimization","python","scraping"],"created_at":"2024-11-13T22:12:39.115Z","updated_at":"2026-04-27T18:05:45.088Z","avatar_url":"https://github.com/AlexTraveylan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solgard Discord Bot\n\nWelcome to the Solgard Discord Bot repository. This bot is designed to bring a range of useful features to Discord servers for the game [Solgard](https://snowprintstudios.com/solgard/).\n\n## Features\n\n- **Connect:** Connect to the game using Python.\n- **Attacks/Bombs Remaining:** The bot can display the remaining bombs and attacks on Discord.\n- **Clash Info:** The bot can provide information about the remaining attacks and the current score on Discord.\n- **Interpolate Powers:** The bot utilizes machine learning to predict powers for clashes, with multiple implementations.\n- **Assign Target Clash:** Uses the Kuhn Munkres algorithm to minimize power differences and assign targets for clashes.\n- **Translation:** The bot can communicate in French, English, Italian, Spanish, Chinese, and Russian.\n\n## Prerequisites\n\nBefore you can use the Solgard Discord Bot, there are a few tools that you need to have installed on your system:\n\n1. **Python:** This bot is built with Python, and you will need to have it installed to run it. You can install Python [here](https://www.python.org/downloads/).\n2. **VSCode:** This is a code editor that you can use to interact with the bot's code. You can download it [here](https://code.visualstudio.com/download) and find a getting started tutorial [here](https://code.visualstudio.com/docs).\n3. **Git:** Git is a version control system that lets you interact with this repository. You can download it [here](https://git-scm.com/downloads) and find a tutorial on how to use it [here](https://git-scm.com/doc).\n\n## Installation\n\n1. **Clone the repository**\n\n   Run the following command in your terminal to clone this repository:\n\n   ```bash\n   git clone https://github.com/AlexTraveylan/solgard-bot-last-refactoring.git\n   ```\n\n2. **Install the dependencies**\n\n    Navigate into the cloned repository, create and activated venv and install dependencies :\n\n    - windows\n    ```powershell\n    cd solgard-bot-last-refactoring\n    python -m venv env\n    env\\Scripts\\activate\n    pip install -r requirements.txt\n    ```\n    - linux\n    ```bash\n    cd solgard-bot-last-refactoring\n    python -m venv env\n    source env/bin/activate\n    pip install -r requirements.txt\n    ```\n\n\n3. **Set entrypoint**\n\n    - **Get your config file** : You need to recup your CONNECT file from the game, for that you have to use a mitm, [here](https://www.garyjackson.dev/posts/intercepting-ios-communication/) [here2](https://hackernoon.com/intercept-https-traffic-on-a-android-emulator-46023f17f6b3). You can download mitmproxy for that [here](https://mitmproxy.org/)\n\n    - Here an example of CONNECT file\n    \u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/image.png\" width=\"90%\"\u003e\n    \u003c/p\u003e\n\n    - open the file app/core/entrypoint/connect.exemple.json like this :\n    \u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/image-1.png\" width=\"90%\"\u003e\n    \u003c/p\u003e\n    - rename the file connect.exemple.json in connect.json\n    - insert your CONNECT json recupered with mitm proxy.\n\n4. **Set your .env file**\n\n    - Open the file create_env.py.\n    \u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/image-2.png\" width=\"90%\"\u003e\n    \u003c/p\u003e\n    - Execute it.\n    - You .env is created, you connect.json is now encrypted in the .env, use that for environnement variable for deployement.\n        \u003cp align=\"center\"\u003e\n    \u003cimg src=\"assets/image-3.png\" width=\"50%\"\u003e\n    \u003c/p\u003e\n    - Add your bot token : `BOT_TOKEN=your-bot-token-here`.\n     \n4. **Run the bot**\n\n    You can now run the bot using the following command:\n\n    ```python\n    python app/main.py\n    ```\n\n    You can also run the file main.py.\n5. **Production**\n\n    It is ready to be deployed online. I suggest you use [Railway](https://railway.app/). It's really easy to set up if you are using githhub and the environment variables are stored in the .env file. You just need to copy them over.\n\n## Contributing\n\nWe welcome contributions to the Solgard Discord Bot! \n- AlexTraveylan\n- Soear\n\n## License\n\nThis project is open source. Fell free to copy it, modify it, or use it like you want.\n\n## Contact\n\nIf you have any questions, comments, or concerns, feel free to open an issue on this repository.\nYou can contact me in discord too, my name : AlexTraveylan (alextraveylan)\n\n## Autodoc\n\nYou can read auto generate documentation localy opening the file : \"docs\\_build\\html\\index.html\" in your navigator !\nBut its not really good ... open the files and read docstring is beter !\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextraveylan%2Fsolgard-bot-last-refactoring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextraveylan%2Fsolgard-bot-last-refactoring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextraveylan%2Fsolgard-bot-last-refactoring/lists"}