How to contribute
Report bugs, send pull requests, translate the bot, donate, help with these docs, and set up a local development environment.
Most of the ways to help Member Counter need no code.
GitHub
The bot, the dashboard and everything around them live in one repository: member-counter/bot. For an idea, a suggestion or a bug, open an issue and answer the questions in the template. Say which counter, which channel type and which bot you were using. Useful reports, ideas and merged pull requests can earn a badge.
Pull requests go to the dev branch, not to master. Development environment below sets you up.
Tolgee
The bot and the dashboard are translated by the community on Tolgee, no development environment needed. To sign up with Discord, press Sign Up with OAuth2 on the sign up page. Translators get the Translator badge, see Badges.
Donations
There is no donate button. Ask in the support server and staff will arrange the donation. The donors page lists the donations so far.
After the donation, staff add the Donor badge to your profile and put your name on the donors page, unless you ask to stay anonymous.
Contributing to the docs
These docs are their own repository, member-counter/docs, published with GitBook. Typos, missing steps and outdated screenshots are all fair game for a pull request. Read tools/docs-style.md first. It sets how each kind of page is built. For an outdated screenshot, open an issue or say which image and what changed: the images are generated by a tool that needs the maintainer's test server, so staff regenerate them.
Development environment
This section gets the bot and the dashboard running on your machine. To run the bot for your own server, you want self-hosting instead, which uses prebuilt images and needs none of this. You need Git, Node.js 22 and Docker. pnpm is pinned in the repository, so corepack enable picks up the right version.
You also need your own Discord application. Never develop against the token of a bot that is in real servers. Creating a Discord bot account walks through the Developer Portal.
Copy .env.example to .env and set:
COOKIE_SECRET
Anything with at least 32 characters. The example value is one character short, so replace it.
DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET, DISCORD_BOT_INSTANCE_TOKEN
The credentials of your development application.
DATABASE_URL
mongodb://localhost:27017/memberCounter?replicaSet=rs0&directConnection=true
REDIS_URL
redis://localhost:6379
NODE_ENV
development
Also register http://localhost:3000/api/auth/callback, the default DISCORD_OAUTH2_REDIRECT_URI, as an OAuth2 redirect URL in the Developer Portal.
.env is not hot-reloaded. After you change it, stop the app and start it again.
Then start everything and open http://localhost:3000:
Open a pull request
Run the checks before you push:
Then create a pull request against the dev branch.
Last updated