5 |
import InteractionOptions from '../../types/InteractionOptions'; |
import InteractionOptions from '../../types/InteractionOptions'; |
6 |
import MessageEmbed from '../../client/MessageEmbed'; |
import MessageEmbed from '../../client/MessageEmbed'; |
7 |
import { fetchEmoji } from '../../utils/Emoji'; |
import { fetchEmoji } from '../../utils/Emoji'; |
8 |
|
import { timeProcess } from '../../utils/util'; |
9 |
|
|
10 |
export default class SystemCommand extends BaseCommand { |
export default class SystemCommand extends BaseCommand { |
11 |
constructor() { |
constructor() { |
66 |
.setDescription((latencyIcon !== '🔴' ? (await fetchEmoji('check'))?.toString() + ' All systems operational' : ':x: Some systems are down/slow')) |
.setDescription((latencyIcon !== '🔴' ? (await fetchEmoji('check'))?.toString() + ' All systems operational' : ':x: Some systems are down/slow')) |
67 |
.addFields([ |
.addFields([ |
68 |
{ |
{ |
69 |
name: 'Type', |
name: 'Command Type', |
70 |
value: `${msg instanceof Message ? 'Legacy (Message-based)' : 'Slash Command'}` |
value: `${msg instanceof Message ? 'Legacy (Message-based)' : 'Slash Command'}` |
71 |
}, |
}, |
72 |
{ |
{ |
73 |
|
name: 'Uptime', |
74 |
|
value: `${timeProcess(parseInt(process.uptime().toFixed(2)))}` |
75 |
|
}, |
76 |
|
{ |
77 |
name: 'Latency', |
name: 'Latency', |
78 |
value: `${latencyIcon} ${latency}ms` |
value: `${latencyIcon} ${latency}ms` |
79 |
}, |
}, |