Skip to content

Commit 55037db

Browse files
committed
Linting + cAmElCaSe...
1 parent fb04f89 commit 55037db

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/zorak/cogs/admin/verification_on_verified.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ async def verify_button_callback_green(self, button: discord.ui.Button, interact
8686
verified_role = discord.utils.get(roles, id=self.bot.server_settings.verified_role['verified'])
8787
await user.add_roles(verified_role)
8888

89-
90-
log_channels_verification_log = await self.bot.fetch_channel(self.bot.server_settings.log_channel["verification_log"])
89+
log_channels_verification_log = await self.bot.fetch_channel(
90+
self.bot.server_settings.log_channel["verification_log"])
9191
log_channels_join = await self.bot.fetch_channel(self.bot.server_settings.log_channel["join_log"])
9292

9393
await log_channels_verification_log.send(f"{user.mention} has verified!")
@@ -107,6 +107,7 @@ async def verify_button_callback_red_4(self, button: discord.ui.Button, interact
107107
"""
108108
await self.send_wrong_button_message_and_kick(interaction)
109109

110+
110111
class VerifyHelper(commands.Cog):
111112
"""
112113
this adds the button to the #verification channel so that people
@@ -129,8 +130,6 @@ async def add_verify_button(self, ctx):
129130

130131
await ctx.respond(button_message, view=AdminVerification(self.bot))
131132

132-
133-
134133
async def cog_command_error(self, ctx: commands.Context, error: commands.CommandError):
135134
if isinstance(error, commands.MissingPermissions):
136135
await ctx.send(
@@ -141,7 +140,7 @@ async def cog_command_error(self, ctx: commands.Context, error: commands.Command
141140
raise error
142141

143142

144-
class persistantButton(commands.Cog):
143+
class PersistentButton(commands.Cog):
145144
"""
146145
Listener for Adding the verification as a persistent listener
147146
"""
@@ -158,7 +157,4 @@ async def on_ready(self):
158157
def setup(bot):
159158
"""Required."""
160159
bot.add_cog(VerifyHelper(bot))
161-
bot.add_cog(persistantButton(bot))
162-
163-
164-
160+
bot.add_cog(PersistentButton(bot))

0 commit comments

Comments
 (0)