Skip to content

Self-hosting

This guide sets you up with a self-hosted Fluxcord bot.

  • A system with Docker and Docker Compose (or Podman and Podman Compose)

  1. Firstly, clone the Fluxcord repository.
    Terminal window
    $ git clone https://git.gay/Fluxcord/core Fluxcord
  2. Then, install dependencies.
    Terminal window
    $ cd Fluxcord
    $ pnpm install # (BARE METAL ONLY) or npm install if you didn't install pnpm
  1. Go to https://discord.com/developers/applications (log in if needed)
  2. Go to Applications, and create an application by clicking “New Application”.
  3. Name your bot, accept the terms, and click “Create”.
  4. Copy the Application ID. We’ll need that, then go to Bot, then click “Reset Token”. Verify your Multi-factor Authentication if needed.
  5. Copy the generated token, we’ll also need that.
  6. Scroll down and enable “Message Content Intent”.
  1. Go to Settings > Applications, and create an application by clicking “Create Application”.
  2. Name your bot, and click “Create”.
  3. Copy the Application ID. We’ll need that in the next step.
  4. Click “Reset Token”. Verify your Multi-factor Authentication if needed.
  5. Copy the generated token, we’ll need that.

Making a community for temporary emojis (Fluxer)

Section titled “Making a community for temporary emojis (Fluxer)”

This is so the bot can store temporary bridged emojis. If you want to use an existing community you can skip to step 3.

  1. Click “Add a Community”, then “Create Community”.
  2. Name it something, and click “Create Community”.
  3. Now, invite the Fluxer bot by using this link. Replace the [APP_ID] to the Application ID we got on the previous step.
    https://web.fluxer.app/oauth2/authorize?client_id=[APP_ID]&scope=bot&permissions=2260735261797440
  4. After that, right click the community and click “Copy Community ID”
  1. Copy the example config file and edit it:
    Terminal window
    $ cp config.example.js config.js
    $ nano config.js # or vi, gedit, kwrite, emacs...
  2. Put all the things that we got on the previous steps on it.
  3. Add your Discord and Fluxer accounts on the Admin account IDs by right clicking your user and click “Copy User ID”, then pasting it on the AdminAccountIds field.
  4. If bare-metal: Edit the data directory to where you want the Fluxcord data to be stored. By default it will store it to /data which is not recommended for bare-metal setups. Do not touch this if on Docker.
  1. Run the bot.
    Terminal window
    $ docker compose up -d --build # or podman-compose up -d --build
  2. To see logs, just run
    Terminal window
    $ docker compose logs -f

The bot will output the invite links on the log/console. Those are the invite codes you use to invite the bot to your server.

After that, go back to Getting Started and follow steps 2-4.