Make owner cog PEP8 friendly
@@ -3,6 +3,7 @@ import discord
from random import choice
import json
+
class Owner(commands.Cog):
def __init__(self, bot):
self.bot = bot
@@ -161,10 +162,7 @@ class Owner(commands.Cog):
@commands.command(name="info2")
@commands.is_owner()
async def info2(self, ctx):
- infoEmbed = discord.Embed(
- description = "",
- color = discord.Color.green()
- )
+ infoEmbed = discord.Embed(description="", color=discord.Color.green())
infoEmbed.add_field(name="__**Owner Info**__", value=f"""
Guild Count: {len(self.bot.guilds)}
DM Channel Count: {len(self.bot.private_channels)}
@@ -280,5 +278,6 @@ Latency: {round(self.bot.latency*1000, 2)} ms
mcServers.write(json.dumps(self.g.mcServers))
await ctx.send(f"Added {str(server)} to the Minecraft server list")
+
def setup(bot):
bot.add_cog(Owner(bot))
