Improve grammar in max concurrency error (#4501)

* better concurrency grammar

* remove casing

* Apply Bread's suggestion per Draper's comment

Co-authored-by: Sean <29239704+Bakersbakebread@users.noreply.github.com>

* Thanks Pred

Co-authored-by: Predeactor <61093863+Predeactor@users.noreply.github.com>

Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Co-authored-by: Sean <29239704+Bakersbakebread@users.noreply.github.com>
Co-authored-by: Predeactor <61093863+Predeactor@users.noreply.github.com>
This commit is contained in:
PhenoM4n4n 2020-12-18 15:31:16 -08:00 committed by GitHub
parent 7f587ea46b
commit 8280067b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -311,8 +311,19 @@ def init_events(bot, cli_flags):
else:
msg = _(
"Too many people using this command."
" It can only be used {number} time concurrently."
).format(number=error.number)
" It can only be used once concurrently."
)
elif error.per in (commands.BucketType.user, commands.BucketType.member):
if error.number > 1:
msg = _(
"That command is still completing,"
" it can only be used {number} times per {type} concurrently."
).format(number=error.number, type=error.per.name)
else:
msg = _(
"That command is still completing,"
" it can only be used once per {type} concurrently."
).format(type=error.per.name)
else:
if error.number > 1:
msg = _(
@ -322,8 +333,8 @@ def init_events(bot, cli_flags):
else:
msg = _(
"Too many people using this command."
" It can only be used {number} time per {type} concurrently."
).format(number=error.number, type=error.per.name)
" It can only be used once per {type} concurrently."
).format(type=error.per.name)
await ctx.send(msg)
else:
log.exception(type(error).__name__, exc_info=error)