diff options
| author | Alee <alee14498@gmail.com> | 2018-04-20 17:23:08 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-20 17:23:08 -0400 |
| commit | 6684a9a4f7c9cab8a5dfeb66c9a57f2040f93d71 (patch) | |
| tree | 719fe6a886378a5da0e9e864346bad0af1d45fdb /commands/help.js | |
| parent | 1335729a825218e001109864c49d72bbb9b6ea42 (diff) | |
| download | AleeBot-6684a9a4f7c9cab8a5dfeb66c9a57f2040f93d71.tar.gz AleeBot-6684a9a4f7c9cab8a5dfeb66c9a57f2040f93d71.tar.bz2 AleeBot-6684a9a4f7c9cab8a5dfeb66c9a57f2040f93d71.zip | |
Changes in help
Diffstat (limited to 'commands/help.js')
| -rw-r--r-- | commands/help.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/commands/help.js b/commands/help.js index f6c380d..8631aa3 100644 --- a/commands/help.js +++ b/commands/help.js @@ -18,6 +18,7 @@ *
* *************************************/
const Discord = require('discord.js');
+const fs = require('fs');
module.exports.run = async (client, message) => {
const categories = [];
const commands = Array.from(client.commands.keys());
@@ -28,9 +29,19 @@ module.exports.run = async (client, message) => { }
});
+ let prefixes = JSON.parse(fs.readFileSync("./storage/prefixes.json", "utf8"));
+
+ if(!prefixes[message.guild.id]){
+ prefixes[message.guild.id] = {
+ prefixes: settings.prefix
+ };
+ }
+
+ let prefix = prefixes[message.guild.id].prefixes
+
const embed = new Discord.RichEmbed()
.setAuthor('AleeBot ' + require('../storage/settings.json').abVersion + ` Help and on ${client.guilds.size} servers`, 'https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048')
- .setDescription('Every command you input into AleeBot is `' + require('../storage/settings.json').prefix + '`')
+ .setDescription('Every command you input into AleeBot is `' + prefix + '`')
.setColor('#1fd619')
.setFooter('AleeCorp Copyright 2018, Licensed with GPL-3.0');
|
