diff --git a/commands/general/prefix.js b/commands/general/prefix.js index a671b2d..6ab4648 100644 --- a/commands/general/prefix.js +++ b/commands/general/prefix.js @@ -3,7 +3,7 @@ import Command from "../../classes/command.js"; class PrefixCommand extends Command { async run() { - if (!this.channel.guild) return "This command only works in servers!"; + if (!this.channel.guild) return `The current prefix is \`${process.env.PREFIX}\``; const guild = await database.getGuild(this.channel.guild.id); if (this.args.length !== 0) { const owners = process.env.OWNER.split(","); diff --git a/events/messageCreate.js b/events/messageCreate.js index a33effd..b7f267d 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -43,7 +43,7 @@ export default async (client, cluster, worker, ipc, message) => { prefix = prefixCandidate; } } else { - prefix = ""; + prefix = process.env.PREFIX; } // ignore other stuff