From 7fc90a6cb9e1e867d0fdfe52ae3d0a50c4f07c05 Mon Sep 17 00:00:00 2001 From: Ben Soyka Date: Mon, 31 Jan 2022 17:38:35 -0700 Subject: Fix footer reference to deprecated unsubscribe command --- bot/exts/holidays/valentines/lovecalculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/holidays/valentines/lovecalculator.py b/bot/exts/holidays/valentines/lovecalculator.py index a53014e5..277c9a39 100644 --- a/bot/exts/holidays/valentines/lovecalculator.py +++ b/bot/exts/holidays/valentines/lovecalculator.py @@ -90,7 +90,7 @@ class LoveCalculator(Cog): name="A letter from Dr. Love:", value=data["text"] ) - embed.set_footer(text=f"You can unsubscribe from lovefest by using {Client.prefix}lovefest unsub") + embed.set_footer(text="You can unsubscribe from lovefest by using !subscribe") await ctx.send(embed=embed) -- cgit v1.2.3 From 851e6adb03e54244ef59c75a41783d9ec548ab69 Mon Sep 17 00:00:00 2001 From: Ben Soyka Date: Mon, 31 Jan 2022 18:55:45 -0700 Subject: Add period to love calculator footer --- bot/exts/holidays/valentines/lovecalculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/holidays/valentines/lovecalculator.py b/bot/exts/holidays/valentines/lovecalculator.py index 277c9a39..d49d59d4 100644 --- a/bot/exts/holidays/valentines/lovecalculator.py +++ b/bot/exts/holidays/valentines/lovecalculator.py @@ -90,7 +90,7 @@ class LoveCalculator(Cog): name="A letter from Dr. Love:", value=data["text"] ) - embed.set_footer(text="You can unsubscribe from lovefest by using !subscribe") + embed.set_footer(text="You can unsubscribe from lovefest by using !subscribe.") await ctx.send(embed=embed) -- cgit v1.2.3 From 3b0217eb43c8cf01dc0d387ff64639d3f1cfe2fe Mon Sep 17 00:00:00 2001 From: Ben Soyka Date: Mon, 31 Jan 2022 21:02:03 -0700 Subject: Use constant for Python bot prefix --- bot/exts/holidays/valentines/lovecalculator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot') diff --git a/bot/exts/holidays/valentines/lovecalculator.py b/bot/exts/holidays/valentines/lovecalculator.py index d49d59d4..c2860fb2 100644 --- a/bot/exts/holidays/valentines/lovecalculator.py +++ b/bot/exts/holidays/valentines/lovecalculator.py @@ -12,7 +12,7 @@ from discord.ext import commands from discord.ext.commands import BadArgument, Cog, clean_content from bot.bot import Bot -from bot.constants import Channels, Client, Lovefest, Month +from bot.constants import Channels, Client, Lovefest, Month, PYTHON_PREFIX from bot.utils.decorators import in_month log = logging.getLogger(__name__) @@ -90,7 +90,7 @@ class LoveCalculator(Cog): name="A letter from Dr. Love:", value=data["text"] ) - embed.set_footer(text="You can unsubscribe from lovefest by using !subscribe.") + embed.set_footer(text=f"You can unsubscribe from lovefest by using {PYTHON_PREFIX}subscribe.") await ctx.send(embed=embed) -- cgit v1.2.3 From a400f81de9f14aba698c47f965824cb7e9b4ed10 Mon Sep 17 00:00:00 2001 From: Ben Soyka Date: Mon, 31 Jan 2022 21:04:46 -0700 Subject: Replace command/channel for lovefest role error in calculator --- bot/exts/holidays/valentines/lovecalculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/holidays/valentines/lovecalculator.py b/bot/exts/holidays/valentines/lovecalculator.py index c2860fb2..367eacaf 100644 --- a/bot/exts/holidays/valentines/lovecalculator.py +++ b/bot/exts/holidays/valentines/lovecalculator.py @@ -51,7 +51,7 @@ class LoveCalculator(Cog): raise BadArgument( "This command can only be ran against members with the lovefest role! " "This role be can assigned by running " - f"`{Client.prefix}lovefest sub` in <#{Channels.community_bot_commands}>." + f"`{PYTHON_PREFIX}subscribe` in <#{Channels.bot}>." ) if whom is None: -- cgit v1.2.3 From 74885a48306b30945b9899a4d44a64ba84b4c24c Mon Sep 17 00:00:00 2001 From: Ben Soyka Date: Mon, 31 Jan 2022 21:08:05 -0700 Subject: Remove unused import --- bot/exts/holidays/valentines/lovecalculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/holidays/valentines/lovecalculator.py b/bot/exts/holidays/valentines/lovecalculator.py index 367eacaf..99fba150 100644 --- a/bot/exts/holidays/valentines/lovecalculator.py +++ b/bot/exts/holidays/valentines/lovecalculator.py @@ -12,7 +12,7 @@ from discord.ext import commands from discord.ext.commands import BadArgument, Cog, clean_content from bot.bot import Bot -from bot.constants import Channels, Client, Lovefest, Month, PYTHON_PREFIX +from bot.constants import Channels, Lovefest, Month, PYTHON_PREFIX from bot.utils.decorators import in_month log = logging.getLogger(__name__) -- cgit v1.2.3