SPACES IN TEXT WERE DELETED

This commit is contained in:
rhearmas 2019-12-22 23:02:46 -05:00
parent 0ee9694df1
commit 8d3dbd24d9

View file

@ -14,8 +14,7 @@ exports.run = async (client, message, args) => {
if(args[0].startsWith('<#') && args[0].endsWith('>')) {
location = args[0].slice(2, -1);
location = guild.channels.find(c => c.id === location);
msg = msg.replace(/[0-9]+/g, "");
msg = msg.replace(/[$<#> ]+/g, "");
msg = msg.replace(/[0-9]+/g, "").replace(/[$<#>]+/g, "").slice(1);
console.log(`msg is ${msg}`)
}