/[sudobot]/trunk/src/commands/settings/SystemCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/settings/SystemCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 54 by rakin, Mon Jul 29 17:28:24 2024 UTC revision 58 by rakin, Mon Jul 29 17:28:25 2024 UTC
# Line 5  import CommandOptions from '../../types/ Line 5  import CommandOptions from '../../types/
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() {
# Line 65  export default class SystemCommand exten Line 66  export default class SystemCommand exten
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                      },                      },

Legend:
Removed from v.54  
changed lines
  Added in v.58

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26