Remove netmodule references in server/message
All checks were successful
CI / CI (push) Successful in 16s

This commit is contained in:
SileNce5k 2024-11-01 20:02:44 +01:00
parent cc149768c1
commit 15b25c5732
Signed by: SileNce
GPG key ID: B0A142BB4291B204

View file

@ -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');