From 256646d082f60acdbeb852b561bac80251020aa8 Mon Sep 17 00:00:00 2001 From: IDeletedSystem64 Date: Fri, 1 Jul 2022 19:43:28 -0500 Subject: [PATCH] Fix embed not sending, causing an empty message error --- commands/info.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/info.js b/commands/info.js index 36ccdf4..090a3da 100644 --- a/commands/info.js +++ b/commands/info.js @@ -14,6 +14,10 @@ function Uptime (uptime) { return `${daystring}**, **${hourstring}**, **${minutetring}**, **${secondstring}`; } +const os = require('os'); +const osu = require('node-os-utils'); +const cpu = osu.cpu; + module.exports = { name: require('path').parse(__filename).name, @@ -28,11 +32,7 @@ module.exports = { await interaction.reply(this.handle(client, config, interaction.user)); }, - async handle (client, config, user) { - const os = require('os'); - const osu = require('node-os-utils'); - const cpu = osu.cpu; - + handle (client, config, user) { return { embeds: [{ title: '<:AnitroxInfo:809651936831733791> Information about Anitrox',