feat: ✨ Introduce role check and timer before server stop
All checks were successful
Publish staging Docker image / Push Docker image to Gitea Container Registry (push) Successful in 1m40s
All checks were successful
Publish staging Docker image / Push Docker image to Gitea Container Registry (push) Successful in 1m40s
This commit is contained in:
13
commands/utility/test-time.js
Normal file
13
commands/utility/test-time.js
Normal file
@ -0,0 +1,13 @@
|
||||
const { SlashCommandBuilder } = require('discord.js')
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName('test-time')
|
||||
.setDescription('Test the time between now and 4am in discord timestamp'),
|
||||
async execute(interaction) {
|
||||
const date = new Date(new Date().setDate(new Date().getDate() + 1))
|
||||
date.setUTCHours(3, 0, 0, 0)
|
||||
const test = Math.round(date.getTime() / 1000);
|
||||
await interaction.reply({ content: `Time between now and 4am: <t:${test}:R>`}, {ephemeral: true});
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user