@@ -143,11 +143,12 @@ def add_field(embed: discord.Embed, name: str, value: str):
143143 value = _ ("Bonus for streaming: {}" ).format (f"`{ conf .streambonus } `" ),
144144 inline = False ,
145145 )
146- if conf .appbonus :
146+
147+ if conf .appbonus .voice :
147148 joined = "\n " .join (
148- _ ("• {}: `{}`" ).format (app_name , xp_range ) for app_name , xp_range in conf .appbonus .items ()
149+ _ ("• {}: `{}`" ).format (app_name , xp_range ) for app_name , xp_range in conf .appbonus .voice . items ()
149150 )
150- add_field (embed , _ ("Application XP Bonus" ), joined )
151+ add_field (embed , _ ("Voice Application XP Bonus" ), joined )
151152 if conf .rolebonus .msg :
152153 joined = "\n " .join (
153154 _ ("• {}: `{}`" ).format (f"<@&{ role_id } >" , xp_range ) for role_id , xp_range in conf .rolebonus .msg .items ()
@@ -159,6 +160,11 @@ def add_field(embed: discord.Embed, name: str, value: str):
159160 for channel_id , xp_range in conf .channelbonus .msg .items ()
160161 )
161162 add_field (embed , _ ("Message XP Bonus Channels" ), joined )
163+ if conf .appbonus .msg :
164+ joined = "\n " .join (
165+ _ ("• {}: `{}`" ).format (app_name , xp_range ) for app_name , xp_range in conf .appbonus .msg .items ()
166+ )
167+ add_field (embed , _ ("Message Application XP Bonus" ), joined )
162168 if conf .allowedroles :
163169 joined = ", " .join ([f"<@&{ role_id } >" for role_id in conf .allowedroles if ctx .guild .get_role (role_id )])
164170 add_field (embed , _ ("Allowed Roles" ), joined )
0 commit comments