make it so it show the real prefix instead of hardcodded prefix

Commando
Loic Bersier 6 years ago
parent 585ba99cc5
commit e6575a6abc

@ -1,6 +1,7 @@
const { Command } = require('discord.js-commando');
const blacklist = require('../../json/blacklist.json');
const fs = require('fs');
const { prefix } = require('../../config.json')
module.exports = class AutoresponseCommand extends Command {
constructor(client) {
super(client, {
@ -8,7 +9,7 @@ module.exports = class AutoresponseCommand extends Command {
group: 'admin',
memberName: 'autoresponse',
userPermissions: ['ADMINISTRATOR'],
description: `Can disable autoresponse in the channel (you can add "ALL" like this "haha enable/disable all" to enable/disable in every channel (EXPERIMENTAL))`,
description: `Can disable autoresponse in the channel (you can add "ALL" like this "${prefix} enable/disable all" to enable/disable in every channel (EXPERIMENTAL))`,
args: [
{
key: 'text',

@ -2,6 +2,7 @@ const { Command } = require('discord.js-commando');
const Discord = require('discord.js');
const fetch = require('node-fetch');
const SelfReloadJSON = require('self-reload-json');
const { prefix } = require('../../config.json')
module.exports = class redditCommand extends Command {
constructor(client) {
@ -40,7 +41,7 @@ module.exports = class redditCommand extends Command {
return message.say("Could not find any images")
}
if (response.data.children[i].data.over_18 == true)
return message.say("No nsfw ( if you want a nsfw version of this commands use the feedback commands \"haha feedback <your feedback>\")")
return message.say(`No nsfw ( if you want a nsfw version of this commands use the feedback commands "${prefix} feedback <your feedback>")`)
const redditEmbed = new Discord.RichEmbed()
.setColor("#ff9900")
.setTitle(response.data.children[i].data.title)

@ -39,7 +39,7 @@ client.registry
if (client.user.id == 377563711927484418) {
const channel = client.channels.get(statsChannel);
channel.send(`Ready to serve in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users. ${client.readyAt}`);
client.user.setActivity('haha feedback <feedback> to tell me what you think of the bot! | haha help'); }
client.user.setActivity(`${prefix} feedback <feedback> to tell me what you think of the bot! | ${prefix} help`); }
});
// When bot join a guild send embeds with details about it.

Loading…
Cancel
Save