pep8
This commit is contained in:
parent
3d508968d4
commit
6c80b5832b
@ -17,7 +17,9 @@ class BotManager:
|
|||||||
|
|
||||||
em = discord.Embed(colour=self.bot.embed_color)
|
em = discord.Embed(colour=self.bot.embed_color)
|
||||||
em.title = "Hello {},".format(ctx.author.name)
|
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)
|
await ctx.send(embed=em)
|
||||||
|
|
||||||
em = discord.Embed(title="Bot invite", colour=discord.Color(0x363941))
|
em = discord.Embed(title="Bot invite", colour=discord.Color(0x363941))
|
||||||
@ -41,7 +43,7 @@ class BotManager:
|
|||||||
else:
|
else:
|
||||||
raise Warning('Prefix not provided and can\'t be found in bot name.')
|
raise Warning('Prefix not provided and can\'t be found in bot name.')
|
||||||
|
|
||||||
if owner != None and ctx.author.guild_permissions.manage_roles:
|
if owner is not None and ctx.author.guild_permissions.manage_roles:
|
||||||
author_id = owner.id
|
author_id = owner.id
|
||||||
else:
|
else:
|
||||||
author_id = ctx.author.id
|
author_id = ctx.author.id
|
||||||
@ -144,6 +146,5 @@ class BotManager:
|
|||||||
await ctx.send(ctx.guild.get_member(owner['owner']).display_name)
|
await ctx.send(ctx.guild.get_member(owner['owner']).display_name)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.add_cog(BotManager(bot))
|
bot.add_cog(BotManager(bot))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user