mirror of
https://github.com/UniverseDevGroup/PokeBot.git
synced 2025-01-22 09:21:58 -05:00
mores stuff
This commit is contained in:
parent
7725599e09
commit
6e0b29df62
2 changed files with 5 additions and 3 deletions
2
bot.js
2
bot.js
|
@ -17,7 +17,7 @@ bot.aliases = new Discord.Collection();
|
|||
bot.categories = new Discord.Collection();
|
||||
bot.queue = new Discord.Collection();
|
||||
bot.plugins = {
|
||||
economy : require('./plugins/Economy.js'),
|
||||
economy : require('./plugins/economy.js'),
|
||||
settings : require('./plugins/settings.js'),
|
||||
whitelist: require('./plugins/whitelist.js'),
|
||||
gyms : require('./plugins/gyms.js')};
|
||||
|
|
|
@ -13,8 +13,10 @@ exports.run = async (bot, msg, args) => {
|
|||
msg.member.setNickname(args.join(' '), 'Requested by bot');
|
||||
msg.channel.send('Changed nickname to: ' + args.join(' '));
|
||||
const logChannel = await bot.plugins.settings.getStr('logs', msg.member.guild.id);
|
||||
|
||||
bot.channels.find('id', logChannel).send(
|
||||
if (!logChannel) return;
|
||||
const channelObj = bot.channels.find('id', logChannel);
|
||||
if (!channelObj) return;
|
||||
channelObj.send(
|
||||
new RichEmbed()
|
||||
.setColor(0x00ae86)
|
||||
.setTitle(`Nickname: ${msg.author.tag}`)
|
||||
|
|
Loading…
Reference in a new issue