Formatting

This commit is contained in:
aikaterna
2017-11-17 22:53:06 -08:00
committed by GitHub
parent 531bd3c8a1
commit d15633d5a0

View File

@@ -31,7 +31,6 @@ class PicWelcome:
async def save_settings(self):
dataIO.save_json('data/picwelcome/settings.json', self.settings)
async def _data_check(self, ctx):
server = ctx.message.server
if server.id not in self.settings:
@@ -39,7 +38,6 @@ class PicWelcome:
self.settings[server.id]["CHANNEL"] = ctx.message.channel.id
await self.save_settings()
@checks.admin_or_permissions(manage_server=True)
@commands.group(pass_context=True)
async def picwelcome(self, ctx):
@@ -82,7 +80,6 @@ class PicWelcome:
serverpicture = self.settings[server.id]["PICTURE"]
await self.bot.send_file(channel_object, serverpicture)
@picwelcome.command(pass_context=True, name="toggle", no_pm=True)
async def picwelcome_toggle(self, ctx):
"""Toggle welcome pictures on the server."""
@@ -97,7 +94,7 @@ class PicWelcome:
@picwelcome.command(name='upload', pass_context=True, no_pm=True)
async def picwelcome_upload(self, ctx, default=None):
"""Upload a picture through Discord.
"""Upload a picture through Discord.
This must be an image file and not a url."""
server = ctx.message.server
await self._data_check(ctx)
@@ -137,7 +134,6 @@ class PicWelcome:
else:
await self.bot.say("Couldn't get the image.")
@picwelcome.command(name="version", pass_context=True, hidden=True)
async def picwelcome_version(self):
"""Displays the picwelcome version."""