Bots.Business - Help
  • Welcome
  • Getting started
  • Create bot from Google Table
  • App
    • Reset or Update Your Password
  • Commands
    • Answer
    • Aliases
    • Keyboard
    • Groups
    • Wait for answer
    • Auto Retry (AR)
  • Coding: BJS
    • Variables
    • Bot functions
    • Message broadcasting and editing
    • User functions
    • Properties
    • Always running commands
    • Error command: "!"
    • Lists
      • Migration from properties to list
    • Api functions
    • BB Admin functions
    • Admin Panel
    • Send HTTP request
    • Web App
    • Caching
    • Inline Bot
    • BJS Security
    • Good coding practices
    • Top errors
  • Git
    • Import bot from Git repository
    • Export bot to Git repository
    • Repository structure
    • File: bot.json
    • Automatic importing on Git push
  • Iterations. How to reduce theys?
  • Limitations
  • Cloud
  • Reports
  • Deep Linking - pass any params on Bot starting
  • How to link chat account with BB account?
  • BB Inspection
  • Protected bot
  • VS Code
  • How to...
  • Smart Bot
    • Overview
    • Lang File
    • SmartBot
    • SmartTasker
    • Amount Dialog
  • Libs
    • What it is - Libs?
    • Libs development
    • RefferalLib
    • ResourcesLib
    • Random
    • MembershipChecker (MCL)
    • Cooldown Lib
    • CurrencyConverter
    • Lang
    • TopBoardLib
    • QiwiPayments
    • Coinbase (CB)
    • CoinPayments (CP)
    • OxaPay
    • CryptoJS
    • CurrencyQuote
    • GoogleApp
    • GoogleTableSync
    • Guard
    • Webhooks lib
    • DateTimeFormat Lib
  • Store
    • BB Point Bot
    • Welcome bot
    • Help bot
    • SRB Demo Keyboard Tools
Powered by GitBook
On this page

Was this helpful?

  1. Smart Bot

Overview

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.

Key Principles of Smart Architecture

  1. Logic Isolation from Content: Separates the logic of your bot from its content.

  2. Multi-Language Support: Defaulting to English, but easily adaptable for other languages.

  3. Unified Command Structure: Use single commands with multiple translations rather than language-specific commands.

  4. Externalized Text Management: All texts, especially translatable ones, are kept outside the command code in language files.

  5. Language-Based Elements: Elements like answers, aliases, and keyboards are defined in language files, not in the command.

  6. Keep It Simple Stupid (KISS): One message per command and clarity in command naming.

  7. Command Naming Rules: Clear and meaningful names for commands.

PreviousHow to...NextLang File

Last updated 2 months ago

Was this helpful?