pep8
This commit is contained in:
parent
5736945447
commit
d906d375f7
@ -17,7 +17,9 @@ class BotManager:
|
||||
|
||||
em = discord.Embed(colour=self.bot.embed_color)
|
||||
em.title = "Hello {},".format(ctx.author.name)
|
||||
em.description = "Thanks for inviting your bot! It will be tested and invited shortly. Please open your DMs if they are not already so the bot can contact you to inform you about the progress of the bot!"
|
||||
em.description = "Thanks for inviting your bot! It will be tested and invited shortly. " \
|
||||
"Please open your DMs if they are not already so the bot can contact " \
|
||||
"you to inform you about the progress of the bot!"
|
||||
await ctx.send(embed=em)
|
||||
|
||||
em = discord.Embed(title="Bot invite", colour=discord.Color(0x363941))
|
||||
@ -41,7 +43,7 @@ class BotManager:
|
||||
else:
|
||||
raise Warning('Prefix not provided and can\'t be found in bot name.')
|
||||
|
||||
if owner != None and ctx.author.guild_permissions.manage_guild:
|
||||
if owner is not None and ctx.author.guild_permissions.manage_guild:
|
||||
author_id = owner.id
|
||||
else:
|
||||
author_id = ctx.author.id
|
||||
@ -143,6 +145,5 @@ class BotManager:
|
||||
await ctx.send(ctx.guild.get_member(owner['owner']).display_name)
|
||||
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(BotManager(bot))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user