Skip to content

Commit 485c6a7

Browse files
committed
fix: exec cmd
1 parent 40f6e39 commit 485c6a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bot/interactions/textcommands/exec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { ChildProcess } = require("child_process");
1+
const { exec } = require("child_process");
22
const TextCommand = require("../../../structures/base/BaseTextCommand");
33
const { EmbedBuilder } = require("discord.js");
44

@@ -24,7 +24,7 @@ class ExecCommand extends TextCommand {
2424

2525
const hrStart = process.hrtime();
2626

27-
ChildProcess.exec(args.join(" "), (error, stdout) => {
27+
exec(args.join(" "), (error, stdout) => {
2828

2929
const hrDiff = process.hrtime(hrStart);
3030

structures/handlers/interactions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class InteractionHandler {
4242

4343
});
4444

45-
readdir(`./bot/interactions/components/`, (err, files) => {
45+
readdir("./bot/interactions/components/", (err, files) => {
4646

4747
const cmdFiles = files.filter(f => f.split(".").pop() === "js");
4848

0 commit comments

Comments
 (0)