add deprecation notice

This commit is contained in:
classabbyamp 2026-02-09 22:26:17 -05:00 committed by classabbyamp
parent 3527df7cd9
commit 312da11631
3 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Added
- Support for Python 3.14.
- Bot deprecation notice in all embeds.
### Changed
- Updated Pycord to 2.7.1.
- `run.sh` to respect the `VIRTUAL_ENV` environment variable.

View File

@ -166,6 +166,12 @@ class GlobalChannelConverter(commands.IDConverter):
def embed_factory(ctx: commands.Context) -> discord.Embed:
"""Creates an embed with neutral colour and standard footer."""
embed = discord.Embed(timestamp=datetime.now(timezone.utc), colour=colours.neutral)
if opt.deprecation_mode:
embed.add_field(name="⚠️ Warning ⚠️",
value=("QRM development has ended. "
"This bot may go offline at some point in the future. "
"For more information, visit [here](https://miaow.io/goodbye-discord)."),
inline=False)
if ctx.author:
embed.set_footer(text=str(ctx.author), icon_url=str(ctx.author.avatar))
return embed

View File

@ -24,6 +24,9 @@ display_prefix = "?"
# or be nice and only print small messages: `False` (the default).
debug = False
# Whether the bot should print a deprecation notice in all embeds
deprecation_mode = True
# A tuple of user IDs that should be considered "bot owners".
# * Those users will have full control over the bot.
# ! This MUST be a tuple of integers. Single element tuple: `(123,)`