MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getStatusIcon

Function getStatusIcon

isalive/isalive.ts:136–148  ·  view source on GitHub ↗
(user: Api.User)

Source from the content-addressed store, hash-verified

134 if (user.premium) return "⭐";
135
136 // 在线状态图标
137 if (user.status instanceof Api.UserStatusOnline) return "🟢";
138 if (user.status instanceof Api.UserStatusRecently) return "🟡";
139 if (user.status instanceof Api.UserStatusOffline) return "⚪";
140 return "⚫";
141}
142
143// 生成趣味评语
144function generateComment(
145 user: Api.User,
146 lastOnlineDays: number | null,
147 lastMessageDate: Date | null
148): string {
149 const comments: string[] = [];
150
151 // 特殊账号状态优先

Callers 1

IsAlivePluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected