Help for netmodules with netmodules not netload

Before you had to type <prefix>help netload to get information about
netmodules, but now it is netmodules to not conflict with a command with
the same name.
This commit is contained in:
SileNce5k 2021-06-25 19:26:04 +02:00
parent 1cddfbbde4
commit a2b8660735
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -14,7 +14,7 @@ module.exports = {
var commands = " " var commands = " "
let commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); let commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
let x = 0 let x = 0
if (args[0] == "netload") { if (args[0] == "netmodules") {
commandFiles = fs.readdirSync('./netload').filter(file => file.endsWith('.js')); commandFiles = fs.readdirSync('./netload').filter(file => file.endsWith('.js'));
if (commandFiles.length == 0) { if (commandFiles.length == 0) {
message.channel.send("There are no netmodules currently loaded.") message.channel.send("There are no netmodules currently loaded.")