From 36f32ac801c8b408c186068a52c5d77360190b28 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:18:05 +0530 Subject: [PATCH 1/2] Add tip for new level 1 users to disable level-up messages --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a06d681..7441411 100644 --- a/main.py +++ b/main.py @@ -172,7 +172,7 @@ async def on_message(ctx): levelling.add_levels(ctx.author.id, 1) if settings.fetch_setting(ctx.author.id, "levelup_messages") is True: try: - await ctx.author.send(f"{ctx.author.mention}, you just ranked up to **level {levelling.get_level(ctx.author.id)}**. Nice!") + await ctx.author.send(f"{ctx.author.mention}, you just ranked up to **level {levelling.get_level(ctx.author.id)}**. Nice!\n\n{':bulb: Tip: This is your global message level and is the same across all servers. If you want to disable it, run ' if levelling.get_level(ctx.author.id) == 1 else ''}") except discord.errors.Forbidden: logger.warn("Unable to send level up message to {ctx.author} ({ctx.author.id}), as they are not accepting DMs from isobot. This ID has been added to `levelup_messages` blacklist.", module="main/Levelling") settings.edit_setting(ctx.author.id, "levelup_messages", False) From 513575619a59bb9d87eea33bfd8464b970c40f07 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:21:38 +0530 Subject: [PATCH 2/2] Move command name to mini codeblock --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7441411..551feb5 100644 --- a/main.py +++ b/main.py @@ -172,7 +172,7 @@ async def on_message(ctx): levelling.add_levels(ctx.author.id, 1) if settings.fetch_setting(ctx.author.id, "levelup_messages") is True: try: - await ctx.author.send(f"{ctx.author.mention}, you just ranked up to **level {levelling.get_level(ctx.author.id)}**. Nice!\n\n{':bulb: Tip: This is your global message level and is the same across all servers. If you want to disable it, run ' if levelling.get_level(ctx.author.id) == 1 else ''}") + await ctx.author.send(f"{ctx.author.mention}, you just ranked up to **level {levelling.get_level(ctx.author.id)}**. Nice!\n\n{':bulb: Tip: This is your global message level and is the same across all servers. If you want to disable it, run `/settings levelup_messages`' if levelling.get_level(ctx.author.id) == 1 else ''}") except discord.errors.Forbidden: logger.warn("Unable to send level up message to {ctx.author} ({ctx.author.id}), as they are not accepting DMs from isobot. This ID has been added to `levelup_messages` blacklist.", module="main/Levelling") settings.edit_setting(ctx.author.id, "levelup_messages", False)