diff --git a/commands/avatar.js b/commands/avatar.js index fe3a6d8..eb85226 100644 --- a/commands/avatar.js +++ b/commands/avatar.js @@ -2,17 +2,17 @@ const client = require("../utils/client.js"); exports.run = async (message, args) => { if (message.mentions[0] !== undefined) { - return message.mentions[0].avatarURL; + return message.mentions[0].dynamicAvatarURL(null, 1024); } else if (client.users.get(args[0]) !== undefined) { - return client.users.get(args[0]).avatarURL; + return client.users.get(args[0]).dynamicAvatarURL(null, 1024); } else if (args.join(" ") !== "") { const userRegex = new RegExp(args.join("|"), "i"); const member = message.channel.guild.members.find(element => { return userRegex.test(element.nick) ? userRegex.test(element.nick) : userRegex.test(element.username); }); - return member ? member.avatarURL : message.author.avatarURL; + return member ? member.dynamicAvatarURL(null, 1024) : message.author.dynamicAvatarURL(null, 1024); } else { - return message.author.avatarURL; + return message.author.dynamicAvatarURL(null, 1024); } }; diff --git a/commands/motivate.js b/commands/motivate.js index 2c8b689..c7389e4 100644 --- a/commands/motivate.js +++ b/commands/motivate.js @@ -33,6 +33,6 @@ exports.run = async (message, args) => { }; }; -exports.aliases = ["motivational", "motiv", "demotiv", "demotivational", "poster"]; +exports.aliases = ["motivational", "motiv", "demotiv", "demotivational", "poster", "motivation"]; exports.category = 5; exports.help = "Creates a motivational poster"; diff --git a/utils/client.js b/utils/client.js index 9eabe67..8f0779b 100644 --- a/utils/client.js +++ b/utils/client.js @@ -1,7 +1,6 @@ // separate the client from app.js so we can call it later const { Client } = require("eris"); const client = new Client(process.env.TOKEN, { - defaultImageSize: 1024, disableEvents: { CHANNEL_CREATE: true, CHANNEL_DELETE: true,