@@ -49,9 +49,7 @@ async def jokechannel(self, ctx: Context, channel: disnake.TextChannel = None):
4949 channel = await ctx .guild .create_text_channel (name = "Joke Channel" )
5050
5151 await self .insert_values (channel .id , "joke" )
52- await send_embed (
53- ctx , None , channel .mention + " now sends jokes on the hour!"
54- )
52+ await send_embed (ctx , None , channel .mention + " now sends jokes on the hour!" )
5553
5654 @command ()
5755 @has_permissions (manage_channels = True )
@@ -60,9 +58,7 @@ async def quotechannel(self, ctx: Context, channel: disnake.TextChannel = None):
6058 channel = await ctx .guild .create_text_channel (name = "Joke Channel" )
6159
6260 await self .insert_values (channel .id , "quote" )
63- await send_embed (
64- ctx , None , channel .mention + " now sends quotes on the hour!"
65- )
61+ await send_embed (ctx , None , channel .mention + " now sends quotes on the hour!" )
6662
6763 @command ()
6864 @has_permissions (manage_channels = True )
@@ -71,9 +67,7 @@ async def factchannel(self, ctx: Context, channel: disnake.TextChannel = None):
7167 channel = await ctx .guild .create_text_channel (name = "Joke Channel" )
7268
7369 await self .insert_values (channel .id , "fact" )
74- await send_embed (
75- ctx , None , channel .mention + " now sends facts on the hour!"
76- )
70+ await send_embed (ctx , None , channel .mention + " now sends facts on the hour!" )
7771
7872 @command (
7973 aliases = ["Welcomer" , "welcome" ],
@@ -83,7 +77,6 @@ async def factchannel(self, ctx: Context, channel: disnake.TextChannel = None):
8377 async def welcomechannel (
8478 self , ctx : Context , role : disnake .Role = "" , * , message : str = ""
8579 ):
86-
8780 with open ("./dicts/Welcome.json" , "r+" ) as f :
8881 data = json .load (f )
8982 if not role :
@@ -110,7 +103,8 @@ async def welcomechannel(
110103 await ctx .reply (embed = embed )
111104
112105 @command (
113- aliases = ["Unwelcome" , "Stop_Welcome" ], description = "Removes the j.welcome command"
106+ aliases = ["Unwelcome" , "Stop_Welcome" ],
107+ description = "Removes the j.welcome command" ,
114108 )
115109 async def remove_welcome (self , ctx : Context ):
116110 with open ("./dicts/Welcome.json" , "r+" ) as f :
@@ -130,7 +124,6 @@ async def suggestchannel(self, ctx: Context, channel: disnake.TextChannel):
130124 with open ("./dicts/Suggest.json" , "r+" ) as k :
131125 data = json .load (k )
132126 if str (channel .id ) not in data :
133-
134127 data [str (channel .id )] = {"Yes" : True }
135128 update_json (k , data )
136129 if channel .id != ctx .channel .id :
@@ -187,7 +180,6 @@ async def verifychannel(
187180 ).content
188181 ).lower ()
189182 if received_msg != "y" :
190-
191183 embed = disnake .Embed (title = "Goodbye!" , colour = get_colour ())
192184 return await ctx .reply (embed = embed )
193185
@@ -198,14 +190,14 @@ async def verifychannel(
198190 if "Yes" in data [key ]:
199191 if data [key ]["Yes" ]:
200192 if data [key ]["Guild" ] == ctx .guild .id :
201-
202193 return await ctx .reply ("There is already a verify here!" )
203194 if not channel :
204195 channel = await ctx .guild .create_text_channel (name = "⚘ verify ⚘" )
205196 with open ("./dicts/VerifyChannel.json" , "r+" ) as k :
206197 if role is None :
207198 await ctx .guild .create_role (
208- name = "⚘ Member ⚘" , permissions = disnake .Permissions (send_messages = True )
199+ name = "⚘ Member ⚘" ,
200+ permissions = disnake .Permissions (send_messages = True ),
209201 )
210202 membrole = disnake .utils .get (ctx .guild .roles , name = "⚘ Member ⚘" )
211203 await ctx .guild .create_role (
@@ -222,7 +214,6 @@ async def verifychannel(
222214 read_messages = False ,
223215 )
224216 else :
225-
226217 await x .set_permissions (
227218 membrole ,
228219 speak = True ,
@@ -270,7 +261,6 @@ async def verifychannel(
270261 read_messages = False ,
271262 )
272263 else :
273-
274264 await z .set_permissions (
275265 g ,
276266 speak = True ,
@@ -311,7 +301,6 @@ async def verifychannel(
311301 @command (aliases = ["remverify" ], description = "removes the need for a verification" )
312302 @has_permissions (administrator = True )
313303 async def removeverify (self , ctx : Context ):
314-
315304 with open ("./dicts/VerifyChannel.json" , "r+" ) as k :
316305 data = json .load (k )
317306 for key in data :
@@ -332,9 +321,10 @@ async def leavechannel(self, ctx: Context, channel: disnake.TextChannel = None):
332321 ctx , "Leaving" , "This server is already registered!"
333322 )
334323 else :
335-
336324 if not channel :
337- channel = await ctx .guild .create_text_channel (name = "Leaving Channel" )
325+ channel = await ctx .guild .create_text_channel (
326+ name = "Leaving Channel"
327+ )
338328 data [str (ctx .guild .id )] = {"id" : channel .id }
339329 update_json (k , data )
340330 await send_embed (
@@ -345,7 +335,6 @@ async def leavechannel(self, ctx: Context, channel: disnake.TextChannel = None):
345335 @command ()
346336 async def removeleavechannel (self , ctx : Context , channel : disnake .TextChannel ):
347337 with open ("./dicts/LeaveChannel.json" , "r+" ) as k :
348-
349338 data = json .load (k )
350339 if str (ctx .guild .id ) not in data :
351340 return await send_embed (
0 commit comments