@@ -46,7 +46,7 @@ def format_cog_help(self, ctx, cog):
4646 for fmt in fmts :
4747 embed = Embed (
4848 description = '*' + inspect .getdoc (cog ) + '*' ,
49- color = Color . blurple ()
49+ color = self . bot . main_color
5050 )
5151
5252 embed .add_field (name = 'Commands' , value = fmt )
@@ -62,7 +62,7 @@ def format_command_help(self, cmd):
6262 """Formats command help."""
6363 prefix = self .bot .prefix
6464 embed = Embed (
65- color = Color . blurple () ,
65+ color = self . bot . main_color ,
6666 description = cmd .help
6767 )
6868
@@ -143,7 +143,7 @@ async def changelog(self, ctx):
143143 @trigger_typing
144144 async def about (self , ctx ):
145145 """Shows information about the bot."""
146- embed = Embed (color = Color . blurple () ,
146+ embed = Embed (color = self . bot . main_color ,
147147 timestamp = datetime .utcnow ())
148148 embed .set_author (name = 'Modmail - About' ,
149149 icon_url = self .bot .user .avatar_url )
@@ -204,7 +204,7 @@ async def github(self, ctx):
204204 embed = Embed (
205205 title = 'GitHub' ,
206206 description = 'Current User' ,
207- color = Color . blurple ()
207+ color = self . bot . main_color
208208 )
209209 user = data ['user' ]
210210 embed .set_author (name = user ['username' ],
@@ -227,7 +227,7 @@ async def update(self, ctx):
227227 embed = Embed (
228228 title = 'Already up to date' ,
229229 description = desc ,
230- color = Color . blurple ()
230+ color = self . bot . main_color
231231 )
232232
233233 if metadata ['latest_version' ] == self .bot .version :
@@ -294,7 +294,7 @@ async def activity(self, ctx, activity_type: str, *, message: str = ''):
294294 await self .bot .config .update ()
295295 embed = Embed (
296296 title = 'Activity Removed' ,
297- color = Color . blurple ()
297+ color = self . bot . main_color
298298 )
299299 return await ctx .send (embed = embed )
300300
@@ -334,7 +334,7 @@ async def activity(self, ctx, activity_type: str, *, message: str = ''):
334334 embed = Embed (
335335 title = 'Activity Changed' ,
336336 description = desc ,
337- color = Color . blurple ()
337+ color = self . bot . main_color
338338 )
339339 return await ctx .send (embed = embed )
340340
@@ -346,7 +346,7 @@ async def ping(self, ctx):
346346 embed = Embed (
347347 title = 'Pong! Websocket Latency:' ,
348348 description = f'{ self .bot .ws .latency * 1000 :.4f} ms' ,
349- color = Color . blurple ()
349+ color = self . bot . main_color
350350 )
351351 return await ctx .send (embed = embed )
352352
@@ -359,15 +359,15 @@ async def mention(self, ctx, *, mention=None):
359359 if mention is None :
360360 embed = Embed (
361361 title = 'Current text' ,
362- color = Color . blurple () ,
362+ color = self . bot . main_color ,
363363 description = f'{ current } '
364364 )
365365
366366 else :
367367 embed = Embed (
368368 title = 'Changed mention!' ,
369369 description = f'On thread creation the bot now says { mention } ' ,
370- color = Color . blurple ()
370+ color = self . bot . main_color
371371 )
372372 self .bot .config ['mention' ] = mention
373373 await self .bot .config .update ()
@@ -382,7 +382,7 @@ async def prefix(self, ctx, *, prefix=None):
382382 current = self .bot .prefix
383383 embed = Embed (
384384 title = 'Current prefix' ,
385- color = Color . blurple () ,
385+ color = self . bot . main_color ,
386386 description = f'{ current } '
387387 )
388388
@@ -411,7 +411,7 @@ async def options(self, ctx):
411411 valid = ', ' .join (f'`{ k } `' for k in allowed )
412412 embed = Embed (title = 'Valid Keys' ,
413413 description = valid ,
414- color = Color . blurple () )
414+ color = self . bot . main_color )
415415 return await ctx .send (embed = embed )
416416
417417 @config .command ()
@@ -430,7 +430,7 @@ async def set(self, ctx, key: str.lower, *, value):
430430 else :
431431 embed = Embed (
432432 title = 'Success' ,
433- color = Color . blurple () ,
433+ color = self . bot . main_color ,
434434 description = f'Set `{ key } ` to `{ value_text } `'
435435 )
436436 await self .bot .config .update ({key : value })
@@ -452,7 +452,7 @@ async def del_config(self, ctx, key: str.lower):
452452 if key in keys :
453453 embed = Embed (
454454 title = 'Success' ,
455- color = Color . blurple () ,
455+ color = self . bot . main_color ,
456456 description = f'`{ key } ` had been deleted from the config.'
457457 )
458458 try :
@@ -481,7 +481,7 @@ async def get(self, ctx, key=None):
481481 if key in keys :
482482 desc = f'`{ key } ` is set to `{ self .bot .config .get (key )} `'
483483 embed = Embed (
484- color = Color . blurple () ,
484+ color = self . bot . main_color ,
485485 description = desc
486486 )
487487 embed .set_author (name = 'Config variable' ,
@@ -498,7 +498,7 @@ async def get(self, ctx, key=None):
498498
499499 else :
500500 embed = Embed (
501- color = Color . blurple () ,
501+ color = self . bot . main_color ,
502502 description = 'Here is a list of currently '
503503 'set configuration variables.'
504504 )
@@ -527,12 +527,12 @@ async def alias(self, ctx):
527527
528528 if self .bot .aliases :
529529 embed = Embed (
530- color = Color . blurple () ,
530+ color = self . bot . main_color ,
531531 description = desc
532532 )
533533 else :
534534 embed = Embed (
535- color = Color . blurple () ,
535+ color = self . bot . main_color ,
536536 description = 'You dont have any aliases at the moment.'
537537 )
538538 embed .set_author (name = 'Command aliases' , icon_url = ctx .guild .icon_url )
@@ -542,7 +542,7 @@ async def alias(self, ctx):
542542
543543 for name , value in self .bot .aliases .items ():
544544 if len (embed .fields ) == 5 :
545- embed = Embed (color = Color . blurple () , description = desc )
545+ embed = Embed (color = self . bot . main_color , description = desc )
546546 embed .set_author (name = 'Command aliases' ,
547547 icon_url = ctx .guild .icon_url )
548548 embed .set_footer (text = f'Do { self .bot .prefix } help '
@@ -583,7 +583,7 @@ async def add_(self, ctx, name: str.lower, *, value):
583583
584584 embed = Embed (
585585 title = 'Added alias' ,
586- color = Color . blurple () ,
586+ color = self . bot . main_color ,
587587 description = f'`{ name } ` points to: { value } '
588588 )
589589
@@ -602,7 +602,7 @@ async def del_alias(self, ctx, *, name: str.lower):
602602
603603 embed = Embed (
604604 title = 'Removed alias' ,
605- color = Color . blurple () ,
605+ color = self . bot . main_color ,
606606 description = f'`{ name } ` no longer exists.'
607607 )
608608
0 commit comments