mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
Add note about updating cogs to update message and docs (#4910)
* Add update note to the docs * And now the DM * consistent wording * Clarify the command should be ran in Discord * apply docs suggestions Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> * apply events.py review Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -29,6 +29,7 @@ from .utils._internal_utils import (
|
||||
format_fuzzy_results,
|
||||
expected_version,
|
||||
fetch_latest_red_version_info,
|
||||
send_to_owners_with_prefix_replaced,
|
||||
)
|
||||
from .utils.chat_formatting import inline, bordered, format_perms_list, humanize_timedelta
|
||||
|
||||
@@ -156,6 +157,11 @@ def init_events(bot, cli_flags):
|
||||
python=sys.executable, package_extras=package_extras
|
||||
)
|
||||
)
|
||||
extra_update += _(
|
||||
"\nOnce you've started up your bot again, if you have any 3rd-party cogs"
|
||||
" installed we then highly recommend you update them with this command"
|
||||
" in Discord: `[p]cog update`"
|
||||
)
|
||||
|
||||
else:
|
||||
extra_update += _(
|
||||
@@ -201,7 +207,7 @@ def init_events(bot, cli_flags):
|
||||
bot._color = discord.Colour(await bot._config.color())
|
||||
bot._red_ready.set()
|
||||
if outdated_red_message:
|
||||
await bot.send_to_owners(outdated_red_message)
|
||||
await send_to_owners_with_prefix_replaced(bot, outdated_red_message)
|
||||
|
||||
@bot.event
|
||||
async def on_command_completion(ctx: commands.Context):
|
||||
|
||||
Reference in New Issue
Block a user