Merge pull request #535 from ZynerOrg/dev

Dev
This commit is contained in:
Axel Olausson Holtenäs 2022-12-13 17:27:37 +01:00 committed by GitHub
commit 37230c7653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -38,6 +38,16 @@ export default {
interaction.guild
);
const { client } = interaction;
if (client?.uptime === null) return;
let totalSeconds = client?.uptime / 1000;
const days = Math?.floor(totalSeconds / 86400);
totalSeconds %= 86400;
const hours = Math?.floor(totalSeconds / 3600);
totalSeconds %= 3600;
const minutes = Math?.floor(totalSeconds / 60);
const seconds = Math?.floor(totalSeconds % 60);
// // Initialize a storage for the user ids
// const userIds = new Set();
// // Iterate over all guilds (always cached)

View file

@ -35,6 +35,7 @@ export default {
`${author.username} sent the last message therefor not allowing again.`
);
await message.delete();
return false;
}
if (content !== channelCounter.triggerWord) {
@ -43,6 +44,7 @@ export default {
);
await message.delete();
return false;
}
const updateGuildCounter = await prisma.guildCounter.update({