File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def cog_unload(self):
4545 # ----------------------------------------------------------------------------------------------------
4646 # * Log XP Gains
4747 # ----------------------------------------------------------------------------------------------------
48- @tasks .loop (seconds = 60 .0 )
48+ @tasks .loop (seconds = 5 .0 )
4949 async def log_xp_gains (self ):
5050 log_copy = self .xp_gain_log .copy ()
5151 self .xp_gain_log .clear ()
@@ -75,8 +75,13 @@ async def log_xp_gains(self):
7575 if not description_lines :
7676 continue
7777
78+ embed = EmbedX .info (
79+ emoji = "⏫" ,
80+ title = "Experience Gains" ,
81+ description = "\n " .join (description_lines ),
82+ )
7883 try :
79- await log_channel .send (" \n " . join ( description_lines ) )
84+ await log_channel .send (embed = embed )
8085 except HTTPException as e :
8186 print (
8287 f"Failed to send XP log to #{ log_channel .name } in { guild .name } : { e } "
You can’t perform that action at this time.
0 commit comments