Add better syntax for the fm command
This commit is contained in:
parent
b539f41d51
commit
5b202ae9d3
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ module.exports = function(client, owners, message, globalPrefix){
|
|||
message.content = message.content.replace(regex, prefix);
|
||||
}
|
||||
let args = message.content.slice(prefix.length).split(" ")
|
||||
if(args[0] !== "fm" && args[0].startsWith("fm")){
|
||||
let firstElement = args[0];
|
||||
args.splice(0, 1, firstElement.substring(0, 2), firstElement.substring(2));
|
||||
}
|
||||
|
||||
const commandName = args.shift().toLowerCase();
|
||||
const command = client.commands.get(commandName);
|
||||
|
|
Loading…
Add table
Reference in a new issue