{"id":13625013,"url":"https://github.com/tatupesonen/formatbot","last_synced_at":"2026-03-09T01:12:46.737Z","repository":{"id":39452145,"uuid":"391436261","full_name":"tatupesonen/formatbot","owner":"tatupesonen","description":"A bot to format code inside code blocks on Discord","archived":false,"fork":false,"pushed_at":"2024-08-25T20:14:06.000Z","size":3323,"stargazers_count":30,"open_issues_count":12,"forks_count":7,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-10-05T07:48:26.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tatupesonen.github.io/formatbot","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tatupesonen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2021-07-31T18:34:48.000Z","updated_at":"2025-03-02T02:33:10.000Z","dependencies_parsed_at":"2024-04-16T11:46:35.721Z","dependency_job_id":"51882dae-08c4-4f92-9463-e335c43b16a2","html_url":"https://github.com/tatupesonen/formatbot","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/tatupesonen/formatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fformatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fformatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fformatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fformatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tatupesonen","download_url":"https://codeload.github.com/tatupesonen/formatbot/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fformatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30279771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"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":[],"created_at":"2024-08-01T21:01:49.776Z","updated_at":"2026-03-09T01:12:46.718Z","avatar_url":"https://github.com/tatupesonen.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/7150217/127782061-8a600d38-cede-4438-be38-ba1f1ce4e243.png\"/\u003e\n  \u003ch1\u003eFormatBot\u003c/hi\u003e\n  \n\n\u003c/div\u003e\n\n[![Tests](https://github.com/tatupesonen/formatbot/actions/workflows/test.yml/badge.svg?branch=dev)](https://github.com/tatupesonen/formatbot/actions/workflows/test.yml)\n\nFormats the code blocks of a message using Discord context menus.\n\n# Currently supported languages\n- C\n- C++\n- C#\n- Java\n- Rust\n- TypeScript\n- JavaScript\n- Python\n- JSON\n- YAML\n- HTML\n- CSS\n\n# Invite\n\nIf you wish to invite the bot to your server, you can do it using this [invite](https://discord.com/api/oauth2/authorize?client_id=871058245404475423\u0026permissions=68608\u0026scope=applications.commands%20bot)\n\n## Required Permissions\n\n- Read Messages\n- Send Messages\n- application.commands scope\n\n## Getting Started ⚙️\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Requirements\n\n- Docker\n- Docker Compose (compatible with docker-compose version 3.8)\n\n## For development\n- Yarn\n- Node.js \u003e= 16.6.0\n\nGet the Docker version you need [here](https://hub.docker.com/search?q=docker\u0026type=edition\u0026offering=community)!\n\n\n### Usage\n![image](https://user-images.githubusercontent.com/7150217/132768378-d2a9a907-6f21-461b-83b1-8beeabc334ee.png)\n\n\n### Setup\n\nSince this bot has a **docker-compose.yml** file and is hosted on [DockerHub](https://hub.docker.com/r/nnari/formatbot), all you need to start your own version of Formatbot locally is to `clone` this repository and set up the **.env** file.\n\nThe **.env** file is used to configure the bot token and owner id, in the following format:\n\n```\nDISCORD_TOKEN=\u003cinsert token\u003e\nOWNER=\u003cinsert owner id\u003e\n```\n\n#### For **Linux** and **Mac** run\n\n```console\n$ cp .env.example .env\n```\n\n#### For **Windows** run\n\n```powershell\n\u003e Copy-Item .env.example .env\n```\n\nEdit the **.env** file with your favourite editor, filling out the following properties:\n\n- **DISCORD_TOKEN** (you can find the bot token under `https://discord.com/developers/applications/bot-id/bot` for an overview of all your bots visit https://discord.com/developers/applications)\n- **OWNER** ([Where can I find my User/Server/Message ID?](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-))\n\nRun the bot via `docker-compose`\n\n```console\n$ docker-compose up --build --detach\n```\n\n# Without Docker\n\nCreate the `.env` file like before.  \nThen run `yarn \u0026\u0026 yarn dev` to start a development environment.\n\n## Authors 👤\n\n- **Tatu Pesonen** - _Original Author_ - [@tatupesonen](https://github.com/tatupesonen)\n- **Donny Roufs** - _Motivational speaker / setting up testing architecture_ - [@donnyroufs](https://github.com/donnyroufs)\n- **Ben Jamming** - _Improve code blocks parsing a lot_ - [@BenJammingKirby](https://github.com/benjammingkirby)\n- **Dajeki** - _Improving the bot's logo_ - [@Dajeki](https://github.com/dajeki)\n  See also the list of [contributors](https://github.com/tatupesonen/formatbot/graphs/contributors) who participated in this project.\n\n## Show your support ⭐️\n\nGive a ⭐️ if this project helped you!\n\n## License 📝\n\u003cbr\u003e\nThis project is [GPLv3](LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatupesonen%2Fformatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftatupesonen%2Fformatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatupesonen%2Fformatbot/lists"}