Updating Tsubaki after merging a PR - TsubakiBotPad/pad-cogs GitHub Wiki
Updating all cogs
- To update all cogs, type
^cog update
. This is aliased as^cu
on Tsubaki server.- When Tsubaki says "Do you want to reload?" click the yes emoji (or type
+:white_check_mark
)
- When Tsubaki says "Do you want to reload?" click the yes emoji (or type
- If you updated
dadguide
cog, you should then updatepadinfo
,padevents
,padsearch
, andpadglobal
afterwards. Even if the PR caused these cogs to be updated, Tsubaki won't have done them in the right order so you need to do them manually yourself.- This is accomplished by typing
^reload padinfo padglobal padsearch padevents
orrldgcogs
which stands for "reload dadguide cogs"
- This is accomplished by typing
Updating a single cog
If you want to update a single cog the process is slightly more annoying:
- First download the updated repo with
^repo update pad
or^repo update misc
depending where the PR was from - Then update the specific cog or cogs with
^cog update $cogname
, for example^cog update dadguide
. Do NOT type^cog update
without an argument as this will immediately update all cogs!!!!!!!!!!! (what an utterly terrible design decision) - If you updated
dadguide
then see above for updating the rest of the cogs that depend on dadguide
Updating a cog & a library when the library had a breaking change
- pipupdate the library
- Use cog update, do NOT reload the cog!!! (Press X when it asks you)
- Restart the bot; this will reload the changes from steps 1 & 2 at the same time, hooray