mirror of
https://github.com/miaowware/qrm2.git
synced 2026-03-03 21:50:05 -05:00
add deprecation notice
This commit is contained in:
parent
3527df7cd9
commit
312da11631
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,)`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user