Remove netmodule references in server/message
All checks were successful
CI / CI (push) Successful in 16s
All checks were successful
CI / CI (push) Successful in 16s
This commit is contained in:
parent
cc149768c1
commit
15b25c5732
1 changed files with 0 additions and 9 deletions
|
@ -22,16 +22,7 @@ module.exports = function(client, owners, message, globalPrefix){
|
|||
|
||||
const commandName = args.shift().toLowerCase();
|
||||
const command = client.commands.get(commandName);
|
||||
const netModule = client.netmodules.get(commandName);
|
||||
if (!command){
|
||||
if (netModule){
|
||||
try {
|
||||
netModule.execute({message: message, args: args, client: client, prefix: prefix})
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
}
|
||||
return;
|
||||
}
|
||||
const customPath = './data/customCommands.json';
|
||||
if(fs.existsSync(customPath)){
|
||||
let json = fs.readFileSync(customPath, 'utf8');
|
||||
|
|
Loading…
Add table
Reference in a new issue