diff options
Diffstat (limited to 'src/modules/block.js')
| -rw-r--r-- | src/modules/block.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/block.js b/src/modules/block.js index 94913c4..46bb96a 100644 --- a/src/modules/block.js +++ b/src/modules/block.js @@ -31,7 +31,7 @@ module.exports = ({ bot, knex, config, commands }) => { const isBlocked = await blocked.isBlocked(userIdToBlock); if (isBlocked) { - msg.channel.createMessage('User is already blocked'); + msg.channel.createMessage('User is already blocked.'); return; } @@ -44,9 +44,9 @@ module.exports = ({ bot, knex, config, commands }) => { if (expiresAt) { const humanized = humanizeDuration(args.blockTime, { largest: 2, round: true }); - msg.channel.createMessage(`Blocked <@${userIdToBlock}> (id \`${userIdToBlock}\`) from modmail for ${humanized}`); + msg.channel.createMessage(`Blocked <@${userIdToBlock}> (id \`${userIdToBlock}\`) from modmail for ${humanized}.`); } else { - msg.channel.createMessage(`Blocked <@${userIdToBlock}> (id \`${userIdToBlock}\`) from modmail indefinitely`); + msg.channel.createMessage(`Blocked <@${userIdToBlock}> (id \`${userIdToBlock}\`) from modmail indefinitely.`); } }; @@ -59,7 +59,7 @@ module.exports = ({ bot, knex, config, commands }) => { const isBlocked = await blocked.isBlocked(userIdToUnblock); if (! isBlocked) { - msg.channel.createMessage('User is not blocked'); + msg.channel.createMessage('User is not blocked.'); return; } @@ -71,10 +71,10 @@ module.exports = ({ bot, knex, config, commands }) => { if (unblockAt) { const humanized = humanizeDuration(args.unblockDelay, { largest: 2, round: true }); await blocked.updateExpiryTime(userIdToUnblock, unblockAt); - msg.channel.createMessage(`Scheduled <@${userIdToUnblock}> (id \`${userIdToUnblock}\`) to be unblocked in ${humanized}`); + msg.channel.createMessage(`Scheduled <@${userIdToUnblock}> (id \`${userIdToUnblock}\`) to be unblocked in ${humanized}.`); } else { await blocked.unblock(userIdToUnblock); - msg.channel.createMessage(`Unblocked <@${userIdToUnblock}> (id ${userIdToUnblock}) from modmail`); + msg.channel.createMessage(`Unblocked <@${userIdToUnblock}> (id ${userIdToUnblock}) from modmail.`); } }; @@ -88,12 +88,12 @@ module.exports = ({ bot, knex, config, commands }) => { const blockStatus = await blocked.getBlockStatus(userIdToCheck); if (blockStatus.isBlocked) { if (blockStatus.expiresAt) { - msg.channel.createMessage(`<@!${userIdToCheck}> (id \`${userIdToCheck}\`) is blocked until ${blockStatus.expiresAt} (UTC)`); + msg.channel.createMessage(`<@!${userIdToCheck}> (id \`${userIdToCheck}\`) is blocked until ${blockStatus.expiresAt} (UTC).`); } else { - msg.channel.createMessage(`<@!${userIdToCheck}> (id \`${userIdToCheck}\`) is blocked indefinitely`); + msg.channel.createMessage(`<@!${userIdToCheck}> (id \`${userIdToCheck}\`) is blocked indefinitely.`); } } else { - msg.channel.createMessage(`<@!${userIdToCheck}> (id \`${userIdToCheck}\`) is NOT blocked`); + msg.channel.createMessage(`<@!${userIdToCheck}> (id \`${userIdToCheck}\`) is NOT blocked.`); } }); }; |