Member Counter
  • Member Counter Documentation
    • Counters list
      • Members
      • Math
      • Channels
      • Clock
      • Countdown
      • Game
      • HTTP
      • Nitro Boosters
      • Reddit
      • Replace
      • Roles
      • Bot stats
      • Twitch
      • YouTube
      • Number
      • Concat
    • Using the bot
      • Adding bot to the server
      • Bot Commands
        • info
        • profile
        • invite
        • configure
        • setup
      • Quick-Setup
      • Creating your first counter
      • Customizing counters
      • More on complex counters
    • Custom Bot
      • How to get a custom bot
      • Setting up custom bot
      • Changing bots status
      • Self-hosting the bot
        • Updating a self-hosted bot
    • Misc
      • Legacy Premium Vs Custom Bot
      • Badges
  • How to contribute
  • Add Member Counter
  • Support Discord Server
  • GitHub Repository
Powered by GitBook
On this page
  • Open the bot's folder in a terminal, and stop the bot
  • Start everything again except the bot and website
  • Apply database migrations
  • Apply the database schema
  • Finally, start the bot and website
  1. Member Counter Documentation
  2. Custom Bot
  3. Self-hosting the bot

Updating a self-hosted bot

PreviousSelf-hosting the botNextMisc

Last updated 1 month ago

Open the bot's folder in a terminal, and stop the bot

docker compose rm -s -f

Download the latest version

git pull

The .env file might have suffered changes, please visit to figure out if you need to setup new env vars

Start everything again except the bot and website

docker compose up -d --force-recreate --scale bot=0 --scale website=0

Apply database migrations

docker compose run -T db-utils npm run db:migrate up

Apply the database schema

docker compose run -T db-utils npm run db:push

Finally, start the bot and website

docker compose up -d --scale bot=1 --scale website=1
Configuring Member Counter