refactor: 修复潜在bug、补全许可声明、添加类型注解、同步文档
This commit is contained in:
@@ -1,4 +1,24 @@
|
||||
# <<*>> -^v- SNOWARE APPLICATION
|
||||
# usage: Configurable constants for MineSentinel.
|
||||
# author: S.A.
|
||||
# time: 2026-06-08
|
||||
# Copyright (c) [2026] [S.A. SNOWARE-SCU]
|
||||
# [MineSentinel] is licensed under Mulan PubL v2.
|
||||
# You can use this software according to the terms and conditions of the Mulan PubL v2.
|
||||
# You may obtain a copy of Mulan PubL v2 at:
|
||||
# http://license.coscl.org.cn/MulanPubL-2.0
|
||||
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
||||
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
||||
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
||||
# See the Mulan PubL v2 for more details.
|
||||
|
||||
# frozen_string_literal: true
|
||||
|
||||
# @type const INITIAL_GRACE: Integer
|
||||
INITIAL_GRACE = 300 # 初次启动等待 300 秒
|
||||
# @type const TRY_TIMES: Integer
|
||||
TRY_TIMES = 3 # 尝试次数
|
||||
# @type const RST_COOLDOWN_DURATION: Integer
|
||||
RST_COOLDOWN_DURATION = 200 # 重启冷却期 200 秒
|
||||
CHECK_INTERVAL = 1.5 # 检测间隔 1.5 秒
|
||||
# @type const CHECK_INTERVAL: Float
|
||||
CHECK_INTERVAL = 1.5 # 检测间隔 1.5 秒
|
||||
|
||||
Reference in New Issue
Block a user