Skip to content

Commit

Permalink
Merge pull request #535 from ZynerOrg/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VermiumSifell committed Dec 13, 2022
2 parents 937013e + dfa94a0 commit 37230c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/commands/utils/modules/about/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/events/messageCreate/modules/counters/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -43,6 +44,7 @@ export default {
);

await message.delete();
return false;
}

const updateGuildCounter = await prisma.guildCounter.update({
Expand Down

0 comments on commit 37230c7

Please sign in to comment.