From 6b6ef6dc3aea0ce510275fc0abeea42f9356d77b Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 14 Sep 2023 21:32:22 +0800 Subject: [PATCH] update config --- __init__.py | 2 +- config.toml.example | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index ed76dc7..bf5ee34 100644 --- a/__init__.py +++ b/__init__.py @@ -28,7 +28,7 @@ class GroupAnalyticsHandler: async def register(indexer, client: TelegramClient): - port: int = int(indexer.config['plugin_analytics']['port']) + port: int = int(indexer.config['plugin']['analytics']['port']) handler = GroupAnalyticsHandler(client) diff --git a/config.toml.example b/config.toml.example index 587a712..b0d491f 100644 --- a/config.toml.example +++ b/config.toml.example @@ -1,2 +1,4 @@ -[plugin_analytics] +[plugin] +[plugin.analytics] +enabled = true port = 9010