Giter Club home page Giter Club logo

discord-ban-sync's Introduction

Discord Ban Sync

Table of Contents


Overview

This repository houses a bot that automatically synchronizes bans between multiple Discord servers.


Local setup

This setup assumes you have Git, and Node.js setup on your machine. This project requires Node.js version 20 or higher, and uses the pnpm package manager, so you should have basic knowledge about how to use them.

Cloning repository

Note: If you don't have corepack enabled, you can do it with corepack enable.

Setting up the env variables locally

  • cp .env.example .env
  • Fill out the variables in the .env file

The guild ids should be comma separated, e.g. GUILD_IDS=493351982887862283,513338222810497041

Running the bot locally

  • pnpm build

Then:

  • if you're using pm2, you can use:

    • pm2 start ecosystem.config.cjs
  • if your environment variables are stored on the .env file, you can use:

    • pnpm start:env
  • otherwise, use:

    • pnpm start

To check if the bot is working, you can run the /ping slash command.

Updating the bot


Author

discord-ban-sync © almeidx, released under the Apache 2.0 license.

GitHub @almeidx

discord-ban-sync's People

Contributors

dependabot[bot] avatar almeidx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.