SPACES IN TEXT WERE DELETED
This commit is contained in:
parent
0ee9694df1
commit
8d3dbd24d9
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ exports.run = async (client, message, args) => {
|
||||||
if(args[0].startsWith('<#') && args[0].endsWith('>')) {
|
if(args[0].startsWith('<#') && args[0].endsWith('>')) {
|
||||||
location = args[0].slice(2, -1);
|
location = args[0].slice(2, -1);
|
||||||
location = guild.channels.find(c => c.id === location);
|
location = guild.channels.find(c => c.id === location);
|
||||||
msg = msg.replace(/[0-9]+/g, "");
|
msg = msg.replace(/[0-9]+/g, "").replace(/[$<#>]+/g, "").slice(1);
|
||||||
msg = msg.replace(/[$<#> ]+/g, "");
|
|
||||||
console.log(`msg is ${msg}`)
|
console.log(`msg is ${msg}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue