Overview
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
SmartBot is an advanced class designed for bot developers. It simplifies handling user inputs, managing language translations, and structuring bot commands in a user-friendly way.
The class embodies the principles of Bot Smart Architecture, which focuses on logic isolation, multi-language support, and simplicity.
Logic Isolation from Content: Separates the logic of your bot from its content.
Multi-Language Support: Defaulting to English, but easily adaptable for other languages.
Unified Command Structure: Use single commands with multiple translations rather than language-specific commands.
Externalized Text Management: All texts, especially translatable ones, are kept outside the command code in language files.
Language-Based Elements: Elements like answers, aliases, and keyboards are defined in language files, not in the command.
Keep It Simple Stupid (KISS): One message per command and clarity in command naming.
Command Naming Rules: Clear and meaningful names for commands.