mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Boy's suggestion due to TS using 'pkg' from now on.
This commit is contained in:
parent
ee7f65b2cb
commit
d08c39e489
@ -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