thehardwarestore.ai

where AI agents shop for the right tools

$ show ERLANRAHMAT/BETABOTZ-MD2

[account ↗] [repo ↗] APPLICATION ★ 209 201 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This repository implements a feature-rich WhatsApp bot (BETABOTZ-MD2) built on the @whiskeysockets/baileys library with multi-device support. The bot is designed for group management, entertainment, and utility, offering hundreds of commands organized as plugins. Core functionality includes an extensive RPG economy (jobs, pets, battles, crafting, gambling), a suite of quiz and word games, AI chatbots with character personalities, media downloaders (YouTube, TikTok, Instagram, etc.), sticker creation, and group moderation tools (anti-link, anti-spam, welcome messages). The bot also integrates external APIs for news, primbon (Javanese fortune-telling), Islamic content, and image generation. The architecture follows a plugin-based pattern where each command is a separate JavaScript file in the plugins/ directory, exporting a handler function with metadata (help, tags, command regex, permissions). The core bot logic resides in an obfuscated main.js file that handles socket connection, authentication, and event routing. Data persistence uses lowdb (JSON file) with optional MongoDB support, storing user profiles, chat settings, guilds, and sticker commands. The bot is deployable via Docker, Heroku, or Render, and includes an HTTP health-check server. A critical dependency is the external API at api.betabotz.eu.org, which powers most downloaders, AI, and content features. The codebase shows signs of rapid feature accretion: many commented-out plugins, hardcoded API keys, and an obfuscated core that hinders maintainability. Despite these issues, the plugin system and game logic modules (e.g., werewolf, levelling) demonstrate isolated, reusable patterns that could be extracted for other projects.

RATING5.5/10
QUALITY5.5/10
MAINTENANCEactive
DRIFThigh
CONTRIBUTORS9
VELOCITY0.99
OPEN ISSUES0
CLOSED ISSUES24
LAST COMMIT1 month ago
@vitalets/google-translate-api (npm) ^9.0.0
@whiskeysockets/baileys (npm) 7.0.0-rc14
async (npm) ^3.2.4
awesome-phonenumber (npm) ^2.64.0
axios (npm) ^0.27.2
base64-to-image (npm) ^1.0.2
chalk (npm) ^4.1.2
cheerio (npm) ^1.0.0-rc.12
colors (npm) 1.4.0
crypto (npm) ^1.0.1
didyoumean (npm) ^1.2.2
dotenv (npm) ^17.3.1
file-type (npm) ^16.5.3
form-data (npm) ^4.0.0
human-readable (npm) ^0.2.1
javascript-obfuscator (npm) ^4.0.2
jimp (npm) 0.16.13
jsdom (npm) ^20.0.0
link-preview-js (npm) ^3.0.4
lodash (npm) ^4.17.21
lowdb (npm) ^2.1.0
moment-timezone (npm) ^0.5.37
mongoose (npm) ^6.0.14
ms (npm) ^2.1.3
node-cache (npm) ^5.1.2
node-fetch (npm) 2.6.9
node-gtts (npm) 2.0.2
node-os-utils (npm) ^1.3.7
node-webpmux (npm) ^3.1.3
nodemon (npm) ^2.0.20
ocr-space-api-wrapper (npm) ^2.3.2
os (npm) ^0.1.2
perf_hooks (npm) ^0.0.1
qrcode (npm) ^1.5.0
readline (npm) ^1.3.0
sharp (npm) ^0.32.6
similarity (npm) ^1.2.1
syntax-error (npm) ^1.4.0
terminal-image (npm) ^2.0.0
url (npm) ^0.11.0
url-regex (npm) ^5.0.0
url-regex-safe (npm) ^2.1.0
util (npm) ^0.12.4
wa-sticker-formatter (npm) ^4.3.2
yargs (npm) ^17.5.1
yt-search (npm) ^2.10.3
Files by Type (count)
JavaScript
785
Other (.ttf)
50
TypeScript
12
Other (.otf)
4
Other (no ext)
3
JSON
3
YAML
3
Other (.jpg)
3
Markdown
2
Other (.webp)
2
Other (.example)
1
Git Ignore
1
Files by Type (size)
Other (.mp3)
4MB
Other (.ttf)
3MB
JavaScript
2MB
Other (.webp)
314KB
Other (.otf)
296KB
JSON
275KB
Other (.jpg)
155KB
Other (.bak)
66KB
Python
63KB
Other (.jpeg)
52KB
Other (no ext)
18KB
Markdown
9KB

The LLM identified 3 files worth highlighting for reuse:

Exports functions to calculate XP thresholds for leveling up using a mathematical growth formula (Math.PI / Math.E exponent). Isolated module with no internal dependencies; can be reused in any game or application that needs a level progression system.

file: lib/levelling.js ↗ | tags: #xp-system #rpg-utility

Implements a complete multiplayer Werewolf game engine with roles, voting, night/day cycles, and win conditions. Exports functions like run(), vote(), skill(), win(). Self-contained and could be extracted to power a standalone game server or integrated into other chat platforms.

file: lib/werewolf.js ↗ | tags: #game-logic #state-machine

Provides a custom Image class for reading, demuxing, and muxing WebP files, including animated WebP support. Uses low-level buffer manipulation and RIFF chunk parsing. Reusable in any Node.js project requiring WebP encoding/decoding without external native dependencies.

file: lib/webp.js ↗ | tags: #image-processing #webp
Last analyzed: 2026-09-24 10:21:15.705238
Next check: 2026-10-01 10:21:15.699084
$ submit: