File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,13 @@ async def setup(self, ctx):
37
37
38
38
await categ .edit (position = 0 )
39
39
40
- c = await self .bot .modmail_guild .create_text_channel (name = 'bot-logs' , category = categ )
41
- await c .edit (topic = 'You can delete this channel if you set up your own log channel.' )
42
- await c .send ('Use the `config set log_channel_id` command to set up a custom log channel.' )
40
+ log_channel = await self .bot .modmail_guild .create_text_channel (name = 'bot-logs' , category = categ )
41
+ await log_channel .edit (topic = 'You can delete this channel if you set up your own log channel.' )
42
+ await log_channel .send ('Use the `config set log_channel_id` command to set up a custom log channel.' )
43
+
43
44
self .bot .config ['main_category_id' ] = categ .id
45
+ self .bot .config ['log_channel_id' ] = log_channel .id
46
+
44
47
await self .bot .config .update ()
45
48
46
49
await ctx .send ('Successfully set up server.' )
You can’t perform that action at this time.
0 commit comments