Skip to content

Commit

Permalink
ADD: new options to uptime
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr1s70ph committed Feb 10, 2023
1 parent 41f1b5d commit 57cbe9b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions interactions/global/uptime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { EmbedBuilder } from 'discord.js'
import project from '../../package.json'
import { DiscordChatInputCommandInteraction, DiscordClient, DiscordSlashCommandBuilder } from '../../types/customTypes'
const os = require('os')
const newLocal = 'child_process'
const latest_commit = require(newLocal).execSync('git rev-parse HEAD').toString().substring(0, 7)

export const data = new DiscordSlashCommandBuilder()
.setName('uptime')
Expand Down Expand Up @@ -27,6 +31,34 @@ exports.Command = async (client: DiscordClient, interaction: DiscordChatInputCom
lng: interaction.user.language,
},
}),
inline: true,
},
{
name: 'Discord.js:',
value: `v${project.dependencies['discord.js'].slice(1)}`,
inline: true,
},
{
name: '‎',
value: '‎',
inline: true,
},
])
.addFields([
{
name: 'OS:',
value: `${os.type()} ${os.release()}`,
inline: true,
},
{
name: 'NodeJs:',
value: `${process.version}`,
inline: true,
},
{
name: 'Latest git Commit:',
value: `[\`${latest_commit}\`](https://github.com/Chr1s70ph/ETIT-Master/commit/${latest_commit})`,
inline: true,
},
])
.setColor('#FF4040')
Expand Down

0 comments on commit 57cbe9b

Please sign in to comment.