replace hardcoded "supositware#1616" with the one from config

This commit is contained in:
loicbersier 2019-10-13 18:54:38 +02:00
parent 7c9434f0eb
commit e6902ec5b1

View file

@ -1,4 +1,5 @@
const { Listener } = require('discord-akairo'); const { Listener } = require('discord-akairo');
const { ownerID } = require('../../config.json');
class CommandBlockedListener extends Listener { class CommandBlockedListener extends Listener {
constructor() { constructor() {
@ -30,7 +31,7 @@ class CommandBlockedListener extends Listener {
message.reply(blacklistMessage); message.reply(blacklistMessage);
break; break;
case 'serverblacklist': case 'serverblacklist':
message.channel.send('This server have been blacklisted... to appeal contact Supositware#1616, and now i will yeet out of here'); message.channel.send(`This server have been blacklisted... to appeal contact ${this.client.users.get(ownerID).username}#${this.client.users.get(ownerID).discriminator}, and now i will yeet out of here`);
message.guild.leave(); message.guild.leave();
break; break;
} }