This commit is contained in:
parent
ba99719c20
commit
e92210e856
3 changed files with 6 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
const isWhitelisted = require('../util/isWhitelisted')
|
||||
module.exports = function(client, owners, message, globalPrefix){
|
||||
let prefix = globalPrefix;
|
||||
module.exports = function(client, owners, message){
|
||||
let prefix = client.settings.get("globalPrefix");
|
||||
let serverPrefix = client.serverPrefixes.get(message.guild.id);
|
||||
if (serverPrefix) {
|
||||
prefix = serverPrefix;
|
||||
|
@ -28,7 +28,7 @@ module.exports = function(client, owners, message, globalPrefix){
|
|||
if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return;
|
||||
try {
|
||||
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments`)
|
||||
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners, globalPrefix: globalPrefix})
|
||||
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners})
|
||||
} catch (error) {
|
||||
let divider = "------------------------"
|
||||
console.log(divider)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue