commit
37230c7653
2 changed files with 12 additions and 0 deletions
|
@ -38,6 +38,16 @@ export default {
|
||||||
interaction.guild
|
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
|
// // Initialize a storage for the user ids
|
||||||
// const userIds = new Set();
|
// const userIds = new Set();
|
||||||
// // Iterate over all guilds (always cached)
|
// // Iterate over all guilds (always cached)
|
||||||
|
|
|
@ -35,6 +35,7 @@ export default {
|
||||||
`${author.username} sent the last message therefor not allowing again.`
|
`${author.username} sent the last message therefor not allowing again.`
|
||||||
);
|
);
|
||||||
await message.delete();
|
await message.delete();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (content !== channelCounter.triggerWord) {
|
if (content !== channelCounter.triggerWord) {
|
||||||
|
@ -43,6 +44,7 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
await message.delete();
|
await message.delete();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateGuildCounter = await prisma.guildCounter.update({
|
const updateGuildCounter = await prisma.guildCounter.update({
|
||||||
|
|
Loading…
Add table
Reference in a new issue