How orange-juice-tech/inforanger-bot-oficial-da-orange works
Project type and purpose
• InfOranger is a Node.js/TypeScript Discord bot. Its primary purpose is to automate community tasks on a Discord server (sending messages, responding to slash commands, scheduling jobs) and to serve as an open-source reference for contributors.
File structure
• Top‐level:
• configs/ – constants and secrets loaded from environment
• loaders/ – modules that discover & register commands, events, jobs
• commands/ – individual slash and user commands (with params)
• events/ – event handlers, organized under system (ready, load*)
• jobs/ – scheduled tasks (e.g. hello.ts)
• shared/utils – generic helpers (e.g. getEnv)
• storage/ – placeholder for persistence (currently empty)
• src/client.ts & src/index.ts – bot initialization and entrypoint
• Patterns: loader pattern (scan folders, auto‐register), modular separation of commands vs events vs jobs.
README for additional insights
• Uses TypeScript for static typing.
• It’s open source, expects contributions following clear conventions.
Detailed elements
• Labels: e.g. “Slash Command Loader”, “Event Listener: ready”, “Job Scheduler”
• Configuration sources (env files, configs/*.ts) feeding into the entrypoint