Pass prefix in help command
This commit is contained in:
parent
0c627c43d4
commit
d29920f871
1 changed files with 1 additions and 2 deletions
|
@ -1,12 +1,11 @@
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const Discord = require('discord.js');
|
const Discord = require('discord.js');
|
||||||
const {prefix} = require('../config.json');
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'help',
|
name: 'help',
|
||||||
description: 'List all available commands.',
|
description: 'List all available commands.',
|
||||||
execute({message, args}) {
|
execute({message, args, prefix}) {
|
||||||
var commands = " "
|
var commands = " "
|
||||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue