Primal Ape is a modular Node.js chat-bot that helps automate routine group tasks, boosts engagement with economy and entertainment features, and makes it easy to extend functionality with focused command modules.
Why this matters
- Saves moderators time by automating repetitive actions (moderation, link revocation, group settings).
- Keeps communities active with mini-games and economy features that encourage participation.
- Provides a clear structure that lowers the cost of adding features or fixing bugs.
- Moderation: promote/demote, kick, ban, lock/unlock groups, and manage join requests.
- Economy & engagement: virtual currency, shop, daily rewards, leaderboards, and simple games.
- Utilities: stickers, media commands, profile management, search and developer tools.
prime.js— main entry point to start the bot.use-sqlite-file-auth-state.js— auth state helper (SQLite-backed storage).commands/— modular command files grouped by category (admin, chat, economy, group, info, maker, music, tools).lib/— shared utilities and helpers.
- Install dependencies
npm install- Start the bot
node prime.jsIf prime.js accepts flags or a config path, run node prime.js --help or open the file to confirm.
Commands live inside commands/ and follow a consistent handler pattern. Examples:
admin/— moderation helperschat/— profile and chat utilitieseconomy/— balance, shop, daily, work, leaderboardgroup/— invite/link management and group infomaker/— sticker and media generationmusic/— play, search, lyricstools/— converters, HTTP tools, QR, TTS, and more
Open any command file to see the exact input/output contract for that handler.
When you contribute, explain the problem you solved and the value your change delivers.
Minimal checklist for contributions:
- Open an issue for larger features or bugs (smaller fixes may go straight to a branch).
- Create a branch:
git checkout -b feat/short-description. - Implement your change and include tests if applicable.
- Run project locally and verify the behavior.
- Open a PR with a clear title and the checklist above.
See CONTRIBUTING.md for more detail on coding style, PR format, and how to describe impact in PRs.
- If the bot doesn't start: check
prime.jsfor missing environment variables or thrown errors logged to console. - If commands behave unexpectedly: open the specific command file and check assumptions about
data/files or permissions. - Verify Node.js version if native modules or specific language features are used.
This project is licensed under the MIT License.
