mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-12 06:55:49 +08:00
🎨 为帮助
添加block=True
(#76)
This commit is contained in:
parent
91819c134d
commit
0d51a42517
@ -12,7 +12,8 @@ sv_core_help_img = SV('Core帮助')
|
|||||||
'core帮助',
|
'core帮助',
|
||||||
'Core帮助',
|
'Core帮助',
|
||||||
'帮助',
|
'帮助',
|
||||||
)
|
),
|
||||||
|
block=True,
|
||||||
)
|
)
|
||||||
async def send_core_help_msg(bot: Bot, ev: Event):
|
async def send_core_help_msg(bot: Bot, ev: Event):
|
||||||
logger.info('[早柚核心] 开始执行[帮助图]')
|
logger.info('[早柚核心] 开始执行[帮助图]')
|
||||||
@ -24,7 +25,8 @@ async def send_core_help_msg(bot: Bot, ev: Event):
|
|||||||
'core管理帮助',
|
'core管理帮助',
|
||||||
'Core管理帮助',
|
'Core管理帮助',
|
||||||
'管理帮助',
|
'管理帮助',
|
||||||
)
|
),
|
||||||
|
block=True,
|
||||||
)
|
)
|
||||||
async def send_core_master_help_msg(bot: Bot, ev: Event):
|
async def send_core_master_help_msg(bot: Bot, ev: Event):
|
||||||
logger.info('[早柚核心] 开始执行[管理帮助图]')
|
logger.info('[早柚核心] 开始执行[管理帮助图]')
|
||||||
|
@ -22,10 +22,15 @@ def get_sv_panel(
|
|||||||
black_list: List = [],
|
black_list: List = [],
|
||||||
white_list: List = [],
|
white_list: List = [],
|
||||||
prefix: List = [],
|
prefix: List = [],
|
||||||
|
force_prefix: List[str] = [],
|
||||||
disable_force_prefix: bool = False,
|
disable_force_prefix: bool = False,
|
||||||
allow_empty_prefix: bool = False,
|
allow_empty_prefix: bool = False,
|
||||||
):
|
):
|
||||||
api = f'{API}/{name}'
|
api = f'{API}/{name}'
|
||||||
|
if force_prefix:
|
||||||
|
defalut_prefix = ','.join(force_prefix)
|
||||||
|
else:
|
||||||
|
defalut_prefix = '无自带前缀'
|
||||||
|
|
||||||
area_options = [
|
area_options = [
|
||||||
{'label': '全局', 'value': 'ALL'},
|
{'label': '全局', 'value': 'ALL'},
|
||||||
@ -43,7 +48,7 @@ def get_sv_panel(
|
|||||||
'type': 'container',
|
'type': 'container',
|
||||||
'body': [
|
'body': [
|
||||||
get_input_tag(
|
get_input_tag(
|
||||||
'自定义插件前缀(不影响插件默认前缀)',
|
'自定义插件前缀(不影响插件自带前缀)',
|
||||||
'prefix',
|
'prefix',
|
||||||
prefix,
|
prefix,
|
||||||
[],
|
[],
|
||||||
@ -67,7 +72,7 @@ def get_sv_panel(
|
|||||||
'body': [
|
'body': [
|
||||||
{
|
{
|
||||||
'type': 'switch',
|
'type': 'switch',
|
||||||
'label': '是否禁用插件自带前缀',
|
'label': f'是否禁用插件自带前缀({defalut_prefix})',
|
||||||
'option': '开启/关闭功能',
|
'option': '开启/关闭功能',
|
||||||
'name': 'disable_force_prefix',
|
'name': 'disable_force_prefix',
|
||||||
'falseValue': False,
|
'falseValue': False,
|
||||||
@ -426,6 +431,7 @@ def get_sv_page():
|
|||||||
plugins.black_list,
|
plugins.black_list,
|
||||||
plugins.white_list,
|
plugins.white_list,
|
||||||
plugins.prefix,
|
plugins.prefix,
|
||||||
|
plugins.force_prefix,
|
||||||
plugins.disable_force_prefix,
|
plugins.disable_force_prefix,
|
||||||
plugins.allow_empty_prefix,
|
plugins.allow_empty_prefix,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user