关于
Member Counter is a Discord bot which lets you display counts and other dynamic information in a channel name or topic
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
- Git
- Node.js 24 (>= 24.22.1)
- Docker
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_SECRETto something secure with at least 32 characters (or just add one more character for development purposes) - Set
DISCORD_CLIENT_ID,DISCORD_CLIENT_SECRETandDISCORD_BOT_INSTANCE_TOKENwith your development bot credentials - Update
DISCORD_OAUTH2_REDIRECT_URIas needed in the.envfile and at the Discord developer portal (OAuth2 redirect URL) - Set
DATABASE_URLtomongodb://localhost:27017/memberCounter?replicaSet=rs0&directConnection=trueSave this file as.env - Set
REDIS_URLtoredis://localhost:6379 - Set
NODE_ENVtodevelopment
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!
探索相关项目
加载中…