3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Finish preliminary rework, ready to test

This commit is contained in:
Dark 2021-06-02 04:07:50 +02:00
parent 293a850075
commit c99e745f89
177 changed files with 854 additions and 707 deletions

View file

@ -23,11 +23,11 @@ export function getTextMatchPartialSummary(
} else if (type === "username") {
return `username: ${context.user!.username}`;
} else if (type === "nickname") {
return `nickname: ${context.member!.nick}`;
return `nickname: ${context.member!.nickname}`;
} else if (type === "visiblename") {
const visibleName = context.member?.nick || context.user!.username;
const visibleName = context.member?.nickname || context.user!.username;
return `visible name: ${visibleName}`;
} else if (type === "customstatus") {
return `custom status: ${context.member!.game!.state}`;
return `custom status: ${context.member!.presence.activities.find(a => a.type === "CUSTOM_STATUS")?.name}`;
}
}