mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-14 13:47:24 +08:00
🚚 移除通信测试插件
This commit is contained in:
parent
d3f1e35a12
commit
0417805e46
@ -2,7 +2,7 @@ nonebot:
|
||||
host: 127.0.0.1
|
||||
port: 20216
|
||||
command_start: ["", "/"]
|
||||
nickname: [ "liteyuki-dev" ]
|
||||
nickname: [ "liteyuki" ]
|
||||
default_language: zh
|
||||
driver: ~fastapi+~httpx+~websockets
|
||||
alconna_use_command_start: true
|
@ -261,7 +261,7 @@ def get_config_with_compat(key: str, compat_keys: tuple[str], default: Any = Non
|
||||
return get_bot().config[key]
|
||||
for compat_key in compat_keys:
|
||||
if compat_key in get_bot().config:
|
||||
logger.warning(f"Config key {compat_key} will be deprecated, use {key} instead.")
|
||||
logger.warning(f"Config key \"{compat_key}\" will be deprecated, use \"{key}\" instead.")
|
||||
return get_bot().config[compat_key]
|
||||
return default
|
||||
|
||||
|
@ -37,7 +37,7 @@ def debounce(wait):
|
||||
return decorator
|
||||
|
||||
|
||||
if get_config_with_compat("liteyuki.dev_mode", ("dev_mode",), False):
|
||||
if get_config_with_compat("liteyuki.reload", ("dev_mode",), False):
|
||||
logger.debug("Liteyuki Reload enabled, watching for file changes...")
|
||||
observer.start()
|
||||
|
||||
|
@ -1,20 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
|
||||
|
||||
@Time : 2024/8/16 下午8:30
|
||||
@Author : snowykami
|
||||
@Email : snowykami@outlook.com
|
||||
@File : ts_ly_comm.py
|
||||
@Software: PyCharm
|
||||
"""
|
||||
from nonebot.plugin import PluginMetadata
|
||||
from liteyuki.comm.storage import shared_memory
|
||||
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="轻雪通信测试",
|
||||
description="用于测试轻雪插件通信",
|
||||
usage="不面向用户",
|
||||
)
|
||||
|
||||
print("共享内存数据:", shared_memory.get("startup_timestamp", default=None))
|
Loading…
Reference in New Issue
Block a user