diff options
author | 2023-05-06 13:36:52 +0100 | |
---|---|---|
committer | 2023-05-06 13:36:52 +0100 | |
commit | e2d0c268732ab6998a90028be9ecd1f8efcce7d8 (patch) | |
tree | ea0fc0176f18331756c19d110ee6edf4e5100898 /bot/__main__.py | |
parent | Bump pre-commit from 3.3.0 to 3.3.1 (#1263) (diff) | |
parent | bump bot-core to 9.6.0 (diff) |
Merge pull request #1260 from shtlrs/pedantic-configuration
Use pydantic for configuration management
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index d39e93bf..1b6b9f1e 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -19,11 +19,11 @@ log = logging.getLogger(__name__) async def _create_redis_session() -> RedisSession: """Create and connect to a redis session.""" redis_session = RedisSession( - host=constants.RedisConfig.host, - port=constants.RedisConfig.port, - password=constants.RedisConfig.password, + host=constants.Redis.host, + port=constants.Redis.port, + password=constants.Redis.password.get_secret_value(), max_connections=20, - use_fakeredis=constants.RedisConfig.use_fakeredis, + use_fakeredis=constants.Redis.use_fakeredis, global_namespace="bot", decode_responses=True, ) @@ -81,7 +81,7 @@ async def main() -> None: if constants.Client.in_ci: await test_bot_in_ci(_bot) else: - await _bot.start(constants.Client.token) + await _bot.start(constants.Client.token.get_secret_value()) asyncio.run(main()) |