From 312da11631d69f0cc1f2665fcfa66b3b1b84aa9c Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 9 Feb 2026 22:26:17 -0500 Subject: [PATCH] add deprecation notice --- CHANGELOG.md | 1 + common.py | 6 ++++++ templates/data/options.py | 3 +++ 3 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 670e753..d8dd356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/common.py b/common.py index bb47795..1e42c3a 100644 --- a/common.py +++ b/common.py @@ -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 diff --git a/templates/data/options.py b/templates/data/options.py index bdc7678..b184b22 100644 --- a/templates/data/options.py +++ b/templates/data/options.py @@ -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,)`