Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit f1cedd0

Browse files
author
parafoxia
committed
Beautify
1 parent 1f60e55 commit f1cedd0

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

solaris/bot/cogs/warn.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ async def warn_list_command(self, ctx, target: t.Optional[t.Union[discord.Member
186186
)
187187
)
188188

189-
@commands.group(name="warntype", invoke_without_command=True, help="Manages warn types. Use the command for information on available subcommands.")
189+
@commands.group(
190+
name="warntype",
191+
invoke_without_command=True,
192+
help="Manages warn types. Use the command for information on available subcommands.",
193+
)
190194
@checks.module_has_initialised(MODULE_NAME)
191195
@checks.author_can_configure()
192196
async def warntype_group(self, ctx):
@@ -244,7 +248,10 @@ async def warntype_new_command(self, ctx, warn_type: str, points: int):
244248
)
245249
await ctx.send(f'{self.bot.tick} The warn type "{warn_type}" has been created, and is worth {points} points.')
246250

247-
@warntype_group.command(name="edit", help="Edits an existing warn type. Existing warn records are updated to reflect the changes, but action is not retroactively taken based on point values.")
251+
@warntype_group.command(
252+
name="edit",
253+
help="Edits an existing warn type. Existing warn records are updated to reflect the changes, but action is not retroactively taken based on point values.",
254+
)
248255
@checks.module_has_initialised(MODULE_NAME)
249256
@checks.author_can_configure()
250257
async def warntype_edit_command(self, ctx, warn_type: str, new_name: str, points: int):
@@ -280,7 +287,11 @@ async def warntype_edit_command(self, ctx, warn_type: str, new_name: str, points
280287
f'{self.bot.tick} The warn type "{new_name}" (formerly "{warn_type}") is now worth {points} points.'
281288
)
282289

283-
@warntype_group.command(name="delete", aliases=["del"], help="Deletes a warn type. Existing warn records are updated to reflect the changes, but action is not retroactively taken based on point values.")
290+
@warntype_group.command(
291+
name="delete",
292+
aliases=["del"],
293+
help="Deletes a warn type. Existing warn records are updated to reflect the changes, but action is not retroactively taken based on point values.",
294+
)
284295
@checks.module_has_initialised(MODULE_NAME)
285296
@checks.author_can_configure()
286297
async def warntype_delete_command(self, ctx, warn_type: str):

0 commit comments

Comments
 (0)