Skip to content

Commit

Permalink
[Enhancement] Some formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Nov 18, 2021
1 parent 6b399dc commit 86fca93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
16 changes: 4 additions & 12 deletions commands/Config/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ module.exports = {
embeds: [
embedMessage(
"#9dcc37",
`✅ Bot Prefix Resetted to ` +
"`" +
`${prefix}` +
"`" +
` for ${message.guild.name}`
`✅ Bot Prefix Resetted to \`${prefix}\` for ${message.guild.name}`
),
],
});
Expand All @@ -53,11 +49,7 @@ module.exports = {
embeds: [
embedMessage(
"#9dcc37",
`✅ Bot Prefix set to ` +
"`" +
`${args[0]}` +
"`" +
` for ${message.guild.name}`
`✅ Bot Prefix set to \`${args[0]}\` for ${message.guild.name}`
),
],
});
Expand Down Expand Up @@ -104,7 +96,7 @@ module.exports = {
embeds: [
embedMessage(
"#9dcc37",
`✅ Bot Prefix Resetted to ` + "`" + `${prefix}` + "`"
`✅ Bot Prefix Resetted to \`${prefix}\``
),
],
});
Expand All @@ -116,7 +108,7 @@ module.exports = {
embeds: [
embedMessage(
"#9dcc37",
`✅ Bot Prefix set to ` + "`" + `${newPrefix}` + "`"
`✅ Bot Prefix set to \`${newPrefix}\``
),
],
});
Expand Down
10 changes: 3 additions & 7 deletions commands/Misc/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ function printHelpByCollection(collection, category) {
const commands = collection
.filter((item) => item.category === category || category === null)
.map((command) => {
return (
"`" +
`${command.data.name || command.name} :` +
"`" +
" " +
`${command.data.description || command.description}, `
);
return `\`${command.data.name || command.name} :\` ${
command.data.description || command.description
}, `;
});
return commands || null;
}
Expand Down
10 changes: 2 additions & 8 deletions commands/Misc/nickname.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ module.exports = {
embeds: [
embedMessage(
"#9dcc37",
`✅ Nickname has been successfully changed to ` +
"`" +
`${args[0]}` +
"`"
`✅ Nickname has been successfully changed to \`${args[0]}\``
),
],
});
Expand Down Expand Up @@ -68,10 +65,7 @@ module.exports = {
embeds: [
embedMessage(
"#9dcc37",
`✅ Nickname has been successfully changed to ` +
"`" +
`${args[0]}` +
"`"
`✅ Nickname has been successfully changed to \`${args[0]}\``
),
],
});
Expand Down

0 comments on commit 86fca93

Please sign in to comment.