Skip to content

Commit

Permalink
✨ add metadata to plugin template
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu committed Aug 4, 2023
1 parent f404227 commit be649fe
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

import nonebot
{% endif %}from nonebot import get_driver
from nonebot.plugin import PluginMetadata

from .config import Config

__plugin_meta = PluginMetadata(
name="{{cookiecutter.plugin_name}}",
description="",
usage="",
config=Config,
)

global_config = get_driver().config
config = Config.parse_obj(global_config)
{% if cookiecutter.sub_plugin %}
Expand Down

0 comments on commit be649fe

Please sign in to comment.