From 13bfd7b4d06ae3bb449a33e2ec419c358ec88677 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 20 May 2021 23:31:07 -0600 Subject: [PATCH] bio newline fix --- commands/social/bio.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/commands/social/bio.js b/commands/social/bio.js index 91a7212..340b5e9 100644 --- a/commands/social/bio.js +++ b/commands/social/bio.js @@ -33,7 +33,13 @@ module.exports = { if (['s', 'set'].includes(args[0].toLowerCase())) { args.shift(); if (!args.length) {return message.reply("Please specify a bio!");} - let bio = args.join(" "); + let args2 = msg.startsWith(prefix) + ? message.content.slice(prefix.length).trim().split(/ +/g) + : msg.startsWith('<@!') + ? message.content.slice(4 + client.user.id.length).trim().split(/ +/g) + : message.content.slice(3 + client.user.id.length).trim().split(/ +/g); + args2.shift(); args2.shift(); + let bio = args2.join(" "); if (bio.length > 200) {return message.reply("Please keep your bio under 200 characters!");} tu.bio = bio; tu.save();