Skip to content
Projets

À propos

Member Counter is a Discord bot which lets you display counts and other dynamic information in a channel name or topic

Systèmes et infrastructure

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Member Counter

Add this bot | Website | Translation Project | Documentation

Member Counter is a Discord bot which lets you easily display counts and other dynamic information in a channel name or topic, to get started, add this bot to your Discord server and run /setup server

Self-host

Read this guide to setup this bot using docker: https://docs.membercounter.app/readme/self-hosting

Development environment

Software requirements

Clone the bot and install dependencies

git clone -b dev [email protected]:member-counter/bot.git member-counter-bot
cd member-counter-bot
corepack enable
pnpm install

Configure the app

Open .env with a text editor

  • Set COOKIE_SECRET to something secure with at least 32 characters (or just add one more character for development purposes)
  • Set DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET and DISCORD_BOT_INSTANCE_TOKEN with your development bot credentials
  • Update DISCORD_OAUTH2_REDIRECT_URI as needed in the .env file and at the Discord developer portal (OAuth2 redirect URL)
  • Set DATABASE_URL to mongodb://localhost:27017/memberCounter?replicaSet=rs0&directConnection=true Save this file as .env
  • Set REDIS_URL to redis://localhost:6379
  • Set NODE_ENV to development

Remember that you can't hot-reload this file, you must fully restart the app to apply new changes

Starting the bot and website

npm run dev:docker:up
npm run dev

Now you can start editing the code, when you save a file the app will be reloaded automatically

Do a pull request

Now just create a pull request to the dev branch, and we will review it as soon as possible

Happy coding!

Explorer des projets similaires

Chargement…