Skip to content

Commit

Permalink
📝 Some Editing
Browse files Browse the repository at this point in the history
  • Loading branch information
BearTS committed Apr 4, 2022
1 parent e6739ec commit fe6c365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/Normal/edit-image/caution.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
let fontSize = 60;
while (ctx.measureText(text).width > 3311) {
fontSize--;
ctx.font = `${fontSize} Noto Bold`;
ctx.font = `${fontSize}px Noto Bold`;
}
const lines = await wrapText(ctx, text.toUpperCase(), 895);
const topMost = 470 - (((fontSize * lines.length) / 2) + ((20 * (lines.length - 1)) / 2));
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Normal/edit-image/certificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
category: 'Edit-Image',
usage: '[name of the person]',
run: async (client, message, [ name ], Discord) => {
name = message.author.username;
name = name || message.author.username;
await message.reply('Give a reason for the award');

const msg_filter = (m) => m.author.id === message.author.id;
Expand Down

0 comments on commit fe6c365

Please sign in to comment.