Skip to content

Commit 3893e5e

Browse files
authored
Merge branch 'main' into main
2 parents e33a55d + 6c08dfe commit 3893e5e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

levelup/commands/admin.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

xtools/formatter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def profile(data):
7575
None,
7676
None,
7777
None,
78+
None,
7879
)
7980
user = data["profile_users"][0]
8081
xuid = user["id"]

xtools/xtools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class XTools(commands.Cog):
4545
"""
4646

4747
__author__ = "[vertyco](https://github.com/vertyco/vrt-cogs)"
48-
__version__ = "3.11.7"
48+
__version__ = "3.11.8"
4949

5050
def format_help_for_context(self, ctx: commands.Context):
5151
helpcmd = super().format_help_for_context(ctx)

0 commit comments

Comments
 (0)