Fix embed not sending, causing an empty message error

This commit is contained in:
IDeletedSystem64 2022-07-01 19:43:28 -05:00
parent a2ec5405a2
commit 256646d082
1 changed files with 5 additions and 5 deletions

View File

@ -14,6 +14,10 @@ function Uptime (uptime) {
return `${daystring}**, **${hourstring}**, **${minutetring}**, **${secondstring}`; return `${daystring}**, **${hourstring}**, **${minutetring}**, **${secondstring}`;
} }
const os = require('os');
const osu = require('node-os-utils');
const cpu = osu.cpu;
module.exports = { module.exports = {
name: require('path').parse(__filename).name, name: require('path').parse(__filename).name,
@ -28,11 +32,7 @@ module.exports = {
await interaction.reply(this.handle(client, config, interaction.user)); await interaction.reply(this.handle(client, config, interaction.user));
}, },
async handle (client, config, user) { handle (client, config, user) {
const os = require('os');
const osu = require('node-os-utils');
const cpu = osu.cpu;
return { return {
embeds: [{ embeds: [{
title: '<:AnitroxInfo:809651936831733791> Information about Anitrox', title: '<:AnitroxInfo:809651936831733791> Information about Anitrox',