| 149 | const comments: string[] = []; |
| 150 | |
| 151 | // 特殊账号状态优先 |
| 152 | if (user.deleted) { |
| 153 | const deletedComments = [ |
| 154 | "这号已经凉透了 💀", |
| 155 | "人走茶凉,账号注销", |
| 156 | "RIP,已销号", |
| 157 | "曾经来过,如今已去", |
| 158 | "已成为历史的尘埃...", |
| 159 | "永别了,朋友", |
| 160 | ]; |
| 161 | comments.push(deletedComments[Math.floor(Math.random() * deletedComments.length)]); |
| 162 | return comments.join("\n├ "); |
| 163 | } |
| 164 | |
| 165 | if (user.bot) { |
| 166 | const botComments = [ |
| 167 | "我是机器人,不需要睡觉 🤖", |
| 168 | "24小时待命中~", |
| 169 | "机器人永不下线!", |
| 170 | "人工智能,永远在线", |
| 171 | ]; |
| 172 | comments.push(botComments[Math.floor(Math.random() * botComments.length)]); |
| 173 | return comments.join("\n├ "); |
| 174 | } |
| 175 | |
| 176 | // 根据在线状态生成评语 |
| 177 | if (lastOnlineDays !== null) { |
| 178 | if (lastOnlineDays === 0) { |
| 179 | const onlineComments = [ |
| 180 | "这货还活着!🎉", |
| 181 | "活蹦乱跳的呢~", |
| 182 | "生龙活虎!", |
| 183 | "还在线上浪呢~", |
| 184 | "正在摸鱼中...", |
| 185 | "还没睡觉呢?", |
| 186 | ]; |
| 187 | comments.push(onlineComments[Math.floor(Math.random() * onlineComments.length)]); |
| 188 | } else if (lastOnlineDays <= 1) { |
| 189 | const recentComments = [ |
| 190 | "昨天还在呢", |
| 191 | "刚刚还活着", |
| 192 | "应该还行吧~", |
| 193 | "还热乎着呢", |
| 194 | ]; |
| 195 | comments.push(recentComments[Math.floor(Math.random() * recentComments.length)]); |
| 196 | } else if (lastOnlineDays <= 3) { |
| 197 | const fewDaysComments = [ |
| 198 | "这几天有点安静...", |
| 199 | "可能去忙别的了", |
| 200 | "摸了几天鱼了", |
| 201 | "暂时失踪中~", |
| 202 | ]; |
| 203 | comments.push(fewDaysComments[Math.floor(Math.random() * fewDaysComments.length)]); |
| 204 | } else if (lastOnlineDays <= 7) { |
| 205 | const weekComments = [ |
| 206 | "一周没冒泡了", |
| 207 | "该不会是触电了?", |
| 208 | "是不是去旅游了", |