[V3] Cleanup quotes in cogs (#1782)

* Cleanup quotes in cogs

* More quote cleanup that I missed

fixed a little bit of grammar here and there as well.

* [V3 Warnings] Change allowcustomreasons docstring

To help not confuse users who would believe that the command would use allow or disallow.

* Run black reformat
This commit is contained in:
Eslyium
2018-06-07 00:42:59 -04:00
committed by Will
parent f830f73ae6
commit 60a72b2ba4
30 changed files with 99 additions and 123 deletions

View File

@@ -280,7 +280,7 @@ class Core(CoreLogic):
embed.add_field(name="About Red", value=about, inline=False)
embed.set_footer(
text="Bringing joy since 02 Jan 2016 (over " "{} days ago!)".format(days_since)
text="Bringing joy since 02 Jan 2016 (over {} days ago!)".format(days_since)
)
try:
await ctx.send(embed=embed)
@@ -429,7 +429,7 @@ class Core(CoreLogic):
author = ctx.author
guild = ctx.guild
await ctx.send("Are you sure you want me to leave this server?" " Type yes to confirm.")
await ctx.send("Are you sure you want me to leave this server? Type yes to confirm.")
def conf_check(m):
return m.author == author
@@ -555,7 +555,7 @@ class Core(CoreLogic):
await ctx.send(formed)
if failed:
fmt = "Failed to reload package{plural} {packs}. Check your " "logs for details"
fmt = "Failed to reload package{plural} {packs}. Check your logs for details"
formed = self._get_package_strings(failed, fmt)
await ctx.send(formed)
@@ -846,7 +846,7 @@ class Core(CoreLogic):
try:
await ctx.guild.me.edit(nick=nickname)
except discord.Forbidden:
await ctx.send(_("I lack the permissions to change my own " "nickname."))
await ctx.send(_("I lack the permissions to change my own nickname."))
else:
await ctx.send("Done.")
@@ -889,7 +889,7 @@ class Core(CoreLogic):
for i in range(length):
token += random.choice(chars)
log.info("{0} ({0.id}) requested to be set as owner." "".format(ctx.author))
log.info("{0} ({0.id}) requested to be set as owner.".format(ctx.author))
print(_("\nVerification token:"))
print(token)
@@ -1168,7 +1168,7 @@ class Core(CoreLogic):
prefixes = await ctx.bot.command_prefix(ctx.bot, fake_message(guild=None))
prefix = prefixes[0]
content = _("Use `{}dm {} <text>` to reply to this user" "").format(prefix, author.id)
content = _("Use `{}dm {} <text>` to reply to this user").format(prefix, author.id)
description = _("Sent by {} {}").format(author, source)
@@ -1189,7 +1189,7 @@ class Core(CoreLogic):
await owner.send(content, embed=e)
except discord.InvalidArgument:
await ctx.send(
_("I cannot send your message, I'm unable to find " "my owner... *sigh*")
_("I cannot send your message, I'm unable to find my owner... *sigh*")
)
except:
await ctx.send(_("I'm unable to deliver your message. Sorry."))
@@ -1201,7 +1201,7 @@ class Core(CoreLogic):
await owner.send("{}\n{}".format(content, box(msg_text)))
except discord.InvalidArgument:
await ctx.send(
_("I cannot send your message, I'm unable to find " "my owner... *sigh*")
_("I cannot send your message, I'm unable to find my owner... *sigh*")
)
except:
await ctx.send(_("I'm unable to deliver your message. Sorry."))
@@ -1246,7 +1246,7 @@ class Core(CoreLogic):
await destination.send(embed=e)
except:
await ctx.send(
_("Sorry, I couldn't deliver your message " "to {}").format(destination)
_("Sorry, I couldn't deliver your message to {}").format(destination)
)
else:
await ctx.send(_("Message delivered to {}").format(destination))
@@ -1256,7 +1256,7 @@ class Core(CoreLogic):
await destination.send("{}\n{}".format(box(response), content))
except:
await ctx.send(
_("Sorry, I couldn't deliver your message " "to {}").format(destination)
_("Sorry, I couldn't deliver your message to {}").format(destination)
)
else:
await ctx.send(_("Message delivered to {}").format(destination))