(text: string)
| 75 | 目标:回复消息 / <code>@用户名</code> / <code>用户ID</code> |
| 76 | <code>用户ID</code> 不要求对方在当前群;会从会话缓存与管理群解析`; |
| 77 | |
| 78 | // ==================== 工具函数 ==================== |
| 79 | // 解析时间字符串 |
| 80 | function parseTimeString(timeStr?: string): number { |
| 81 | if (!timeStr) return 0; // 无参数返回0(永久) |
| 82 | |
| 83 | const time = timeStr.toLowerCase(); |
| 84 | const num = parseInt(time) || 0; |
no outgoing calls
no test coverage detected