mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -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:
parent
0becf70b05
commit
4813c68185
@ -54,6 +54,8 @@ If you have Red 3.2.0 or newer, you can upgrade by following these 4 easy steps:
|
|||||||
|
|
||||||
4. Start your bot.
|
4. Start your bot.
|
||||||
|
|
||||||
|
5. If you have any 3rd-party cogs installed, we highly recommend you update them with this command in Discord: ``[p]cog update`` (``[p]`` is considered as your prefix)
|
||||||
|
|
||||||
Linux & Mac
|
Linux & Mac
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
@ -88,6 +90,8 @@ If you have Red 3.2.0 or newer, you can upgrade by following these 4 easy steps:
|
|||||||
|
|
||||||
4. Start your bot.
|
4. Start your bot.
|
||||||
|
|
||||||
|
5. If you have any 3rd-party cogs installed, we highly recommend you update them with this command in Discord: ``[p]cog update`` (``[p]`` is considered as your prefix)
|
||||||
|
|
||||||
Red 3.1.X
|
Red 3.1.X
|
||||||
*********
|
*********
|
||||||
|
|
||||||
|
|||||||
@ -29,6 +29,7 @@ from .utils._internal_utils import (
|
|||||||
format_fuzzy_results,
|
format_fuzzy_results,
|
||||||
expected_version,
|
expected_version,
|
||||||
fetch_latest_red_version_info,
|
fetch_latest_red_version_info,
|
||||||
|
send_to_owners_with_prefix_replaced,
|
||||||
)
|
)
|
||||||
from .utils.chat_formatting import inline, bordered, format_perms_list, humanize_timedelta
|
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
|
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:
|
else:
|
||||||
extra_update += _(
|
extra_update += _(
|
||||||
@ -201,7 +207,7 @@ def init_events(bot, cli_flags):
|
|||||||
bot._color = discord.Colour(await bot._config.color())
|
bot._color = discord.Colour(await bot._config.color())
|
||||||
bot._red_ready.set()
|
bot._red_ready.set()
|
||||||
if outdated_red_message:
|
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
|
@bot.event
|
||||||
async def on_command_completion(ctx: commands.Context):
|
async def on_command_completion(ctx: commands.Context):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user