streamline code
@@ -30,10 +30,7 @@ class Minecraft(commands.Cog):
self.sizes = _json["sizes"]
def cog_unload(self):
- self.bot.loop.create_task(self.stop_ses())
-
- async def stop_ses(self):
- await self.ses.stop()
+ self.bot.loop.create_task(self.ses.stop())
@commands.command(name="mcping") # Pings a java edition minecraft server
async def mc_ping(self, ctx, *, server: str):
