From dd1b4fd21a2425b843e03608f6603fc327ce5e2f Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 14 Feb 2021 12:09:35 +0100 Subject: [PATCH] final fix for say command hopefully --- commands/say.js | 2 +- server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/say.js b/commands/say.js index 9a86627..d2485da 100644 --- a/commands/say.js +++ b/commands/say.js @@ -2,6 +2,6 @@ module.exports = { name: 'say', description: 'Repeats arguments', execute(message, args) { - message.channel.send(args) + message.channel.send(args.join(" ")) } }; \ No newline at end of file diff --git a/server.js b/server.js index 94dd4bf..45436a1 100644 --- a/server.js +++ b/server.js @@ -41,7 +41,7 @@ client.on('message', async message => { if (commandName == "ban" || commandName == "userinfo") { command.execute(message, client); } else if (commandName == "say") { - command.execute(message, args.join(" ")) + command.execute(message, args) } else { command.execute(message);