{"id":31298507,"url":"https://github.com/shaksternano/borgar","last_synced_at":"2026-03-02T22:37:20.137Z","repository":{"id":37006316,"uuid":"482092089","full_name":"shaksternano/borgar","owner":"shaksternano","description":"A Discord and Revolt bot for making fun image edits.","archived":false,"fork":false,"pushed_at":"2025-09-14T18:27:56.000Z","size":30127,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T20:36:28.165Z","etag":null,"topics":["discord","discord-bot","hacktoberfest","image-editing","image-processing","kotlin","revolt","revolt-bot"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaksternano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2022-04-15T21:45:31.000Z","updated_at":"2025-09-14T18:27:59.000Z","dependencies_parsed_at":"2024-02-16T22:22:54.675Z","dependency_job_id":"f1e33461-0f8f-4df4-b0e1-cdc41b97b07a","html_url":"https://github.com/shaksternano/borgar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shaksternano/borgar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaksternano%2Fborgar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaksternano%2Fborgar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaksternano%2Fborgar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaksternano%2Fborgar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaksternano","download_url":"https://codeload.github.com/shaksternano/borgar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaksternano%2Fborgar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276837203,"owners_count":25713343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-24T02:00:09.776Z","response_time":97,"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","hacktoberfest","image-editing","image-processing","kotlin","revolt","revolt-bot"],"created_at":"2025-09-25T00:01:41.515Z","updated_at":"2026-03-02T22:37:20.115Z","avatar_url":"https://github.com/shaksternano.png","language":"Kotlin","funding_links":[],"categories":["🤖 Bots"],"sub_categories":["C"],"readme":"# Borgar\n\nA Discord and Revolt bot that provides fun image editing commands, such as image captioning.\n\n\u003c!--suppress HtmlDeprecatedAttribute --\u003e\n\u003cdiv align=\"center\"\u003e\n   \u003c!--suppress CheckImageSize --\u003e\n   \u003cimg src=\"images/image_caption_example.png\" alt=\"Image captioning\" width=400/\u003e\n\u003c/div\u003e\n\n## Available commands\n\nSome of the fun commands provided by Borgar:\n\n- `%caption`: add captions to an image.\n- `%rotate`: rotates an image.\n- `%speed`: speeds up or slows down a GIF or video.\n\nRun `%help` to see a full list of commands.\n\nCommands can also be chained together. The following example captions an image and then rotates it by 90 degrees\nclockwise:\n\n```\n%caption A caption %rotate 90\n```\n\n## Prerequisites\n\n- Java 21 SDK or higher.\n- A Discord and/or Revolt Bot Token.\n   - You can get a Discord token from the [Discord Developer Portal](https://discord.com/developers/applications) or a\n     Revolt token from the [Revolt Bot Menu](https://app.revolt.chat/settings/bots).\n\n## Getting Borgar\n\nYou can find release builds of Borgar on the [Releases page](https://github.com/shaksternano/borgar/releases).\n\nBuilds from recent commits can be found on\nthe [Actions page](https://github.com/shaksternano/borgar/actions/workflows/build.yml).\n\n## Running Borgar\n\n1. Run Borgar with `java -jar borgar-X.X.X.jar`.\n   - Replace `X.X.X` with the version number of the JAR file you downloaded.\n2. Running the program for the first time should create a `config.json` file and then exit.\n3. Add your Discord and/or Revolt bot token to the `config.json` file and run the program again.\n\n## Required permissions\n\n### Discord\n\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"images/discord_required_permissions.png\" alt=\"Discord required permissions\" width=500/\u003e\n\n### Revolt\n\n\u003c!--suppress CheckImageSize --\u003e\n\u003cimg src=\"images/revolt_required_permissions.png\" alt=\"Revolt required permissions\" width=500/\u003e\n\n## Using PostgreSQL\n\nBorgar can use PostgreSQL instead of the default SQLite database. To use PostgreSQL, follow these steps:\n\n1. Install [Docker](https://docs.docker.com/get-started/get-docker) if you haven't already.\n2. Run the Docker compose file with `docker compose up -d`.\n3. Set the value of `database.url` in `config.json` to `jdbc:postgresql://localhost:5432/postgres`, adjusting the port\n   if changed in the docker-compose.yml file.\n4. Optionally, change the user and password values in the `docker-compose.yml` file and update the `config.json` file\n   accordingly.\n\n## Using Cobalt\n\nBorgar uses [Cobalt](https://github.com/imputnet/cobalt) for the `%download` command, which allows downloading media\nfrom various sites. To set up Cobalt, follow these steps:\n\n1. Install [Docker](https://docs.docker.com/get-started/get-docker) if you haven't already.\n2. Run the Docker compose file with `docker compose up -d`.\n3. Set the value of `cobalt.apiUrl` in `config.json` to `http://localhost:9000`, adjusting the port if changed in the\n   docker-compose.yml file.\n\n## Running the program from source\n\n1. Run `./gradlew run`.\n   - If using IntelliJ IDEA, you can also run `app/src/main/kotlin/Main.kt`.\n\n## Building a JAR File from source\n\n1. Run `./gradlew build`.\n2. The JAR file will be located in `build/libs`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaksternano%2Fborgar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaksternano%2Fborgar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaksternano%2Fborgar/lists"}