{"id":24570326,"url":"https://github.com/civermau/country-mentioned-bot","last_synced_at":"2026-05-11T16:37:37.229Z","repository":{"id":269931396,"uuid":"908851353","full_name":"Civermau/Country-Mentioned-Bot","owner":"Civermau","description":"A Discord bot that detects if a country has been mentioned in a message on a Discord server and replies with Yui (from K-On!).","archived":false,"fork":false,"pushed_at":"2025-03-11T00:53:37.000Z","size":16558,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T01:31:34.185Z","etag":null,"topics":["discord","discord-bot","funny","k-on","silly","yui"],"latest_commit_sha":null,"homepage":"https://discord.com/oauth2/authorize?client_id=1311875601640194240\u0026scope=bot\u0026permissions=101376","language":"C#","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/Civermau.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":"2024-12-27T05:58:38.000Z","updated_at":"2025-03-11T00:53:39.000Z","dependencies_parsed_at":"2024-12-27T09:18:45.926Z","dependency_job_id":"cfff1025-0da3-44bd-8a4d-693ac1b4dde4","html_url":"https://github.com/Civermau/Country-Mentioned-Bot","commit_stats":null,"previous_names":["civermau/country-mentioned-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Civermau/Country-Mentioned-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Civermau%2FCountry-Mentioned-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Civermau%2FCountry-Mentioned-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Civermau%2FCountry-Mentioned-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Civermau%2FCountry-Mentioned-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Civermau","download_url":"https://codeload.github.com/Civermau/Country-Mentioned-Bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Civermau%2FCountry-Mentioned-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["discord","discord-bot","funny","k-on","silly","yui"],"created_at":"2025-01-23T16:19:06.952Z","updated_at":"2026-05-11T16:37:37.213Z","avatar_url":"https://github.com/Civermau.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 Country Mentioned Bot\n\nA Discord bot that responds with images of countries when they are mentioned in chat messages.\n\n## 📜 Project Overview\n\nThis bot listens for country names in messages and sends an image of the mentioned country if available.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/344b3eed-5dd3-4806-9164-b2f0c6c194e9\" alt=\"Country Mentioned Bot\"\u003e\n\u003c/div\u003e\n\n## 💻 How It Works\n\nThe project is structured into several key components:\n\n### 1. **Program.cs**\n   - Initializes the Discord client and configures event handlers.\n   - Loads configuration and country data from JSON files.\n   - Handles message events to detect country mentions and respond with images.\n\n### 2. **countries.json**\n   - Contains a list of country names that the bot can recognize and respond to.\n\n### 3. **config.json**\n   - Stores configuration settings, including the bot token.\n\n### 4. **Images Directory**\n   - Contains images of countries named in `countries.json`.\n   - Images are named after the country they represent (e.g., `MEXICO.jpg`).\n\n## 🛠️ Setting Up\nSince discord bots should always be active, the code must be kept running constantly, to do this, the recommended option is to have the bot code running on a server\nPersonally, I have the bot running on an [Orange Pi 5](http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5.html) of 16GB RAM, but the bot requires almost no resources\nYou can probably run it on a Raspberry Pi Zero, or a raspberry 2 or 3, they are cheap and should work.\n\nYou must have dotnet installed, locally if you want to edit, on the server to run it on there\n\nReady to deploy the bot? Follow these steps:\n\n### If you want to edit this bot\n1. **Clone this repo:**\n   ```bash\n   git clone https://github.com/Civermau/Country-Mentioned-Bot.git\n   ```\n2. Open the project in Visual Studio or your preferred C# IDE.\n\n3. Edit the code to your liking\n\n4. Ensure you have the necessary images in the `Images` directory.\n\n5. Update `config.json` with your Discord bot token.\n\n6. Build and run the solution. use `dotnet build` \u0026 `dotnet run`\n\n### If you want to upload it to a server\n1. **Clone this repo on the server, or upload your version to a server:**\n   ```bash\n   git clone https://github.com/Civermau/Country-Mentioned-Bot.git\n   ```  \n2. run `dotnet publish -O path/of/bot` to generate the DLL, replace path to the desired location\n3. move the file `config.json` (that should have now the token of YOUR bot) to the publish folder\n4. move the file `countries.json` to the publish folder\n5. move the dir `Images` to the publish folder\n6. run `dotnet \"country mentioned bot.dll\"` or the name of the file you selected\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivermau%2Fcountry-mentioned-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcivermau%2Fcountry-mentioned-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivermau%2Fcountry-mentioned-bot/lists"}