This commit is contained in:
void
2020-02-16 01:23:29 +01:00
parent 106848f1da
commit e20f31b726
+1 -1
View File
@@ -1,7 +1,7 @@
exports.run = async (client, msg) => {
if (msg.author.bot) return;
if (msg.channel.type !== 'dm' && client.config.channelname !== "")
if (sg.channel.name.toLowerCase() !== client.config.channelname.toLowerCase()) return;
if (msg.channel.name.toLowerCase() !== client.config.channelname.toLowerCase()) return;
if (msg.channel.type !== 'dm' && !msg.content.trim().replace(/ /g, '').startsWith(client.config.commandprefix)) return;
let args = msg.content.split(/ +/);