{"id":16620486,"url":"https://github.com/almeidx/discord-ban-sync","last_synced_at":"2025-03-21T14:31:40.507Z","repository":{"id":44411132,"uuid":"512488391","full_name":"almeidx/discord-ban-sync","owner":"almeidx","description":"Sync bans across multiple Discord servers","archived":false,"fork":false,"pushed_at":"2025-03-10T22:12:36.000Z","size":4384,"stargazers_count":8,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T02:13:04.522Z","etag":null,"topics":["banning","discord","selfhostable","sync"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/almeidx.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-07-10T16:49:01.000Z","updated_at":"2025-03-13T19:09:31.000Z","dependencies_parsed_at":"2023-10-30T21:37:37.205Z","dependency_job_id":"b3afd7fa-745c-4b8a-9e58-3a3232b4ff11","html_url":"https://github.com/almeidx/discord-ban-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almeidx%2Fdiscord-ban-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almeidx%2Fdiscord-ban-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almeidx%2Fdiscord-ban-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almeidx%2Fdiscord-ban-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almeidx","download_url":"https://codeload.github.com/almeidx/discord-ban-sync/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244815232,"owners_count":20514917,"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","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":["banning","discord","selfhostable","sync"],"created_at":"2024-10-12T02:44:23.130Z","updated_at":"2025-03-21T14:31:40.138Z","avatar_url":"https://github.com/almeidx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Ban Sync\n\n## Table of Contents\n\n- [Discord Ban Sync](#discord-ban-sync)\n  - [Table of Contents](#table-of-contents)\n  - [Overview](#overview)\n    - [Local setup](#local-setup)\n      - [Cloning repository](#cloning-repository)\n      - [Setting up the env variables locally](#setting-up-the-env-variables-locally)\n      - [Running the bot locally](#running-the-bot-locally)\n      - [Updating the bot](#updating-the-bot)\n    - [Author](#author)\n\n---\n\n## Overview\n\nThis repository houses a bot that automatically synchronizes bans between multiple Discord servers.\n\n---\n\n### Local setup\n\nThis setup assumes you have [Git], and [Node.js] setup on your machine. This project requires [Node.js] version 20.17.0\nor higher, and uses the [pnpm] package manager, so you should have basic knowledge about how to use them.\n\n#### Cloning repository\n\n- `git clone git@github.com:almeidx/discord-ban-sync.git`\n- `cd discord-ban-sync`\n- `corepack install`\n- `pnpm i`\n\nNote: If you don't have corepack enabled, you can do it with `corepack enable`.\n\n#### Setting up the env variables locally\n\n- `cp .env.example .env`\n- Fill out the variables in the .env file\n\nThe guild ids should be comma separated, e.g. `GUILD_IDS=493351982887862283,513338222810497041`\n\n#### Running the bot locally\n\n- `pnpm build`\n\nThen:\n\n- if you're using pm2, you can use:\n  - `pm2 start ecosystem.config.cjs`\n\n- if your environment variables are stored on the .env file, you can use:\n  - `pnpm start:env`\n\n- otherwise, use:\n  - `pnpm start`\n\nTo check if the bot is working, you can run the `/ping` slash command.\n\n#### Updating the bot\n\n- `git pull`\n- `pnpm i`\n- `pnpm build`\n- Refer to [Running the bot locally] to run the bot again\n\n---\n\n### Author\n\n**discord-ban-sync** © [almeidx], released under the [Apache 2.0] license.\n\n\u003e GitHub [@almeidx]\n\n[git]: https://git-scm.com/\n[node.js]: https://nodejs.org\n[pnpm]: https://pnpm.io/\n[apache 2.0]: https://github.com/almeidx/discord-ban-sync/blob/main/LICENSE\n[almeidx]: https://almeidx.dev\n[@almeidx]: https://github.com/almeidx\n[running the bot locally]: #running-the-bot-locally\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmeidx%2Fdiscord-ban-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmeidx%2Fdiscord-ban-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmeidx%2Fdiscord-ban-sync/lists"}