From 2e2f3eee042b616d0d3e156e02cee13d8cb17e8c Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Mon, 16 Nov 2020 15:27:20 +0800 Subject: [PATCH] :pencil2: fix config typo --- docs/guide/creating-a-plugin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/creating-a-plugin.md b/docs/guide/creating-a-plugin.md index 17b53496..fe52a25d 100644 --- a/docs/guide/creating-a-plugin.md +++ b/docs/guide/creating-a-plugin.md @@ -94,7 +94,7 @@ class Config(BaseSetting): import nonebot from .config import Config -global_config = nonebot.get_bot().config +global_config = nonebot.get_driver().config plugin_config = Config(**global_config.dict()) ```