mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 16:50:02 +08:00
商店简介动态行数,根据文字长度自动换行
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import nonebot
|
||||
from configs.config import Config
|
||||
from nonebot import Driver
|
||||
from utils.decorator.shop import shop_register
|
||||
import nonebot
|
||||
|
||||
driver: Driver = nonebot.get_driver()
|
||||
|
||||
|
||||
Config.add_plugin_config(
|
||||
@@ -12,3 +16,8 @@ Config.add_plugin_config(
|
||||
|
||||
|
||||
nonebot.load_plugins("basic_plugins/shop")
|
||||
|
||||
|
||||
@driver.on_bot_connect
|
||||
async def _():
|
||||
await shop_register.load_register()
|
||||
|
||||
Reference in New Issue
Block a user