4 |
import CommandOptions from '../../types/CommandOptions'; |
import CommandOptions from '../../types/CommandOptions'; |
5 |
import InteractionOptions from '../../types/InteractionOptions'; |
import InteractionOptions from '../../types/InteractionOptions'; |
6 |
import MessageEmbed from '../../client/MessageEmbed'; |
import MessageEmbed from '../../client/MessageEmbed'; |
|
import Help from '../../utils/help'; |
|
7 |
import { getTimeouts } from '../../utils/setTimeout'; |
import { getTimeouts } from '../../utils/setTimeout'; |
8 |
import { timeProcess, timeSince } from '../../utils/util'; |
import { timeProcess, timeSince } from '../../utils/util'; |
9 |
|
|
23 |
return; |
return; |
24 |
|
|
25 |
console.log(new Date(value.row.time).getTime() - new Date().getTime()); |
console.log(new Date(value.row.time).getTime() - new Date().getTime()); |
26 |
str += `**ID: ${value.row.id}**\n**User Command**: \`${value.row.cmd}\`\n**Internal Command**: \`${value.row.params}\`\n**ETA**: ${timeProcess((new Date(value.row.time).getTime() - new Date().getTime()) / 1000).replace(' ago', '')}\n**Queue Added**: ${new Date(value.row.created_at).toLocaleString()} (${timeSince(new Date(value.row.created_at).getTime())})\n\n`; |
str += `**ID: ${value.row.id}**\n**User Command**: \`${value.row.cmd}\`\n**Internal Command**: \`${value.row.params}\`\n**ETA**: ${timeProcess((new Date(value.row.time).getTime() - new Date().getTime()) / 1000).replace(' ago', '')}\n**Queue Added**: ${value.row.createdAt.toLocaleString()} (${timeSince(value.row.createdAt.getTime())})\n\n`; |
27 |
}); |
}); |
28 |
|
|
29 |
await msg.reply({ |
await msg.reply({ |