@@ -333,11 +333,12 @@ def add_field(embed: discord.Embed, name: str, value: str):
333333 value = _ ("Bonus for streaming: {}" ).format (f"`{ conf .streambonus } `" ),
334334 inline = False ,
335335 )
336- if conf .appbonus :
336+
337+ if conf .appbonus .voice :
337338 joined = "\n " .join (
338- _ ("• {}: `{}`" ).format (app_name , xp_range ) for app_name , xp_range in conf .appbonus .items ()
339+ _ ("• {}: `{}`" ).format (app_name , xp_range ) for app_name , xp_range in conf .appbonus .voice . items ()
339340 )
340- add_field (embed , _ ("Application XP Bonus" ), joined )
341+ add_field (embed , _ ("Voice Application XP Bonus" ), joined )
341342 if conf .rolebonus .msg :
342343 joined = "\n " .join (
343344 _ ("• {}: `{}`" ).format (f"<@&{ role_id } >" , xp_range ) for role_id , xp_range in conf .rolebonus .msg .items ()
@@ -349,6 +350,11 @@ def add_field(embed: discord.Embed, name: str, value: str):
349350 for channel_id , xp_range in conf .channelbonus .msg .items ()
350351 )
351352 add_field (embed , _ ("Message XP Bonus Channels" ), joined )
353+ if conf .appbonus .msg :
354+ joined = "\n " .join (
355+ _ ("• {}: `{}`" ).format (app_name , xp_range ) for app_name , xp_range in conf .appbonus .msg .items ()
356+ )
357+ add_field (embed , _ ("Message Application XP Bonus" ), joined )
352358 if conf .allowedroles :
353359 joined = ", " .join ([f"<@&{ role_id } >" for role_id in conf .allowedroles if ctx .guild .get_role (role_id )])
354360 add_field (embed , _ ("Allowed Roles" ), joined )
0 commit comments