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

!timezone: add fuzzy matching for timezone name; add reset

This commit is contained in:
Dragory 2020-08-19 00:47:31 +03:00
parent 6ba56a3f12
commit a39bdb559f
6 changed files with 90 additions and 7 deletions

View file

@ -51,13 +51,13 @@ export async function getServerInfoEmbed(
});
const basicInformation = [];
basicInformation.push(`Created: **${serverAge} ago** (${prettyCreatedAt})`);
basicInformation.push(`Created: **${serverAge} ago** (\`${prettyCreatedAt}\`)`);
if (thisServer) {
const owner = await resolveUser(pluginData.client, thisServer.ownerID);
const ownerName = `${owner.username}#${owner.discriminator}`;
basicInformation.push(`Owner: **${ownerName}** (${thisServer.ownerID})`);
basicInformation.push(`Owner: **${ownerName}** (\`${thisServer.ownerID}\`)`);
basicInformation.push(`Voice region: **${thisServer.region}**`);
}