Class Tool
java.lang.Object
com.github.theword.queqiao.tool.utils.Tool
工具类
持有全局静态对象与公共工具方法,例如日志、配置、WebSocket 管理等。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
DEBUG模式 用于输出更多内容static void
DEBUG模式 用于输出更多内容static com.google.gson.JsonObject
获取发送消息的前缀字符static String
isRegisterOrLoginCommand
(String command) 判断是否为注册或登录命令
-
Constructor Details
-
Tool
public Tool()
-
-
Method Details
-
isRegisterOrLoginCommand
判断是否为注册或登录命令- Parameters:
command
- 命令- Returns:
- 是否为注册或登录命令,如果是,返回空字符串
-
debugLog
DEBUG模式 用于输出更多内容- Parameters:
message
- 消息
-
debugLog
DEBUG模式 用于输出更多内容- Parameters:
format
- 格式args
- 参数
-
getPrefixComponent
public static com.google.gson.JsonObject getPrefixComponent()获取发送消息的前缀字符可通过配置文件自定义
默认为:[鹊桥]
- Returns:
- 前缀
-