bakabot / component-core
Provides the core functionality and facilities of the bot.
dev-main / 1.0.x-dev
2022-02-15 18:18 UTC
Requires
- php: >=8.0
- ext-intl: *
- ext-pcntl: *
- amphp/amp: ^2.6
- amphp/log: ^1
- amphp/react-adapter: ^2.1
- amphp/sync: ^1.4
- bakabot/attribute: ^2
- bakabot/component: ^1.0@dev
- enqueue/enqueue: ^0.10.9
- evenement/evenement: ^3.0
- monolog/monolog: ^2.3
- php-di/php-di: ^6
- spatie/emoji: ^3.0
- symfony/options-resolver: ^5.3
- symfony/translation: ^5.3
- symfony/twig-bridge: ^5.3
- twig/twig: ^3.3
Requires (Dev)
- bakabot/development: ^2.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-02-23 09:34:15 UTC
README
Provides the core functionality and facilities of the bot.
Installation
composer require bakabot/component-core
Configuration
Parameters
Name | Type | Default Value | Description |
---|---|---|---|
bakabot.debug |
bool |
getenv('APP_DEBUG') ?? false |
Whether to run the bot in debugging mode |
bakabot.default_language |
string |
Locale::getPrimaryLanguage(Locale::getDefault()) |
Default language assumed for servers |
bakabot.default_prefix |
string |
"!" |
Default prefix used for commands |
bakabot.dirs.base |
string |
"/app" |
Base directory |
bakabot.dirs.cache |
string |
"/app/var/cache" |
Cache directory; Used for e.g. compiled DI containers |
bakabot.dirs.var |
string |
"/app/var" |
Variable data; The bot should not depend on this directory existing |
bakabot.env |
string |
getenv('APP_ENV') ?? "prod" |
Name of the environment |
bakabot.logs.default.date_format |
string |
"Y-m-d H:i:s.u" |
Date format used for logs |
bakabot.logs.default.level |
string |
getenv('APP_DEBUG') ? LogLevel::DEBUG : LogLevel::INFO |
Level used for logs |
bakabot.logs.default.line_format |
string |
"[%datetime%] [%channel%] %message% %context% %extra%\n" |
Line format used for logs |
bakabot.name |
string |
getenv('APP_NAME') ?? "Bakabot" |
Name used for the bot |
Services
Name | Description |
---|---|
Bakabot\Command\Registry |
No description available. |
Bakabot\Payload\Processor\Firewall\Firewall |
No description available. |
Bakabot\Payload\Processor\ProcessorChain |
No description available. |
Monolog\Logger (provides: Psr\Log\LoggerInterface ) |
Main application logger |
Psr\Log\LoggerInterface |
Main application logger |
"bakabot.logs.default" (is: Psr\Log\LoggerInterface ) |
Logs to stdout |
"bakabot.logs.error" (is: Psr\Log\LoggerInterface ) |
Logs to stderr |