chore: remove unnecessary codes
This commit is contained in:
@@ -12,7 +12,7 @@ DB_PATH = os.path.join(get_astrbot_data_path(), "data_v3.db")
|
||||
DEFAULT_CONFIG = {
|
||||
"config_version": 2,
|
||||
"platform_settings": {
|
||||
"plugin_enable":[],
|
||||
"plugin_enable": [],
|
||||
"unique_session": False,
|
||||
"rate_limit": {
|
||||
"time": 60,
|
||||
@@ -388,10 +388,6 @@ CONFIG_METADATA_2 = {
|
||||
"type": "string",
|
||||
"hint": "可选的 Discord 活动名称。留空则不设置活动。",
|
||||
},
|
||||
"discord_guild_id_for_debug": {
|
||||
"description": "【开发用】指定一个服务器(Guild)ID。在此服务器注册的指令会立刻生效,便于调试。留空则注册为全局指令。",
|
||||
"type": "string",
|
||||
},
|
||||
},
|
||||
},
|
||||
"platform_settings": {
|
||||
|
||||
@@ -147,7 +147,6 @@ class DiscordPlatformAdapter(Platform):
|
||||
logger.warning("[Discord] 与 Discord 的连接已关闭。")
|
||||
except Exception as e:
|
||||
logger.error(f"[Discord] 适配器运行时发生意外错误: {e}", exc_info=True)
|
||||
# finally: 不再自动调用 self.terminate(),只允许外部统一调度
|
||||
|
||||
def _get_message_type(
|
||||
self, channel: Messageable, guild_id: int | None = None
|
||||
|
||||
Reference in New Issue
Block a user