mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 20:35:38 -05:00
Boy's suggestion due to TS using 'pkg' from now on.
This commit is contained in:
parent
b9a08d5b56
commit
2fc1b7c6dd
@ -1,4 +1,4 @@
|
|||||||
import Discord,{SlashCommandBuilder} from 'discord.js';
|
import Discord,{SlashCommandBuilder,version} from 'discord.js';
|
||||||
import pkg from 'typescript';
|
import pkg from 'typescript';
|
||||||
import si from 'systeminformation';
|
import si from 'systeminformation';
|
||||||
import TClient from '../client.js';
|
import TClient from '../client.js';
|
||||||
@ -15,7 +15,6 @@ export default {
|
|||||||
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||||
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
||||||
};
|
};
|
||||||
var DJSver = (await import('discord.js')).version;
|
|
||||||
const cpu = await si.cpu();
|
const cpu = await si.cpu();
|
||||||
const ram = await si.mem();
|
const ram = await si.mem();
|
||||||
const osInfo = await si.osInfo();
|
const osInfo = await si.osInfo();
|
||||||
@ -52,7 +51,7 @@ export default {
|
|||||||
{name: '> __Dependencies__', value: [
|
{name: '> __Dependencies__', value: [
|
||||||
`**TypeScript:** ${pkg.version}`,
|
`**TypeScript:** ${pkg.version}`,
|
||||||
`**NodeJS:** ${process.version}`,
|
`**NodeJS:** ${process.version}`,
|
||||||
`**DiscordJS:** ${DJSver}`,
|
`**DiscordJS:** ${version}`,
|
||||||
`**Axios:** ${client.axios.VERSION}`
|
`**Axios:** ${client.axios.VERSION}`
|
||||||
].join('\n')},
|
].join('\n')},
|
||||||
{name: '> __Host__', value: [
|
{name: '> __Host__', value: [
|
||||||
|
Loading…
Reference in New Issue
Block a user