We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31ccca commit a5a0a44Copy full SHA for a5a0a44
1 file changed
bot/exts/utilities/githubinfo.py
@@ -85,15 +85,23 @@ def __init__(self, bot: Bot):
85
self.pydis_repos: dict = {}
86
87
async def cog_load(self) -> None:
88
- """Function to be run at cog load."""
+ """
89
+ Function to be run at cog load.
90
+
91
+ Starts the refresh_repos tasks.loop that runs every 24 hours.
92
93
self.refresh_repos.start()
94
95
with open(STORED_REPOS_FILE) as f:
96
self.stored_repos = json.load(f)
97
log.info("Loaded stored repos in memory.")
98
99
async def cog_unload(self) -> None:
- """Function to be run at cog unload."""
100
101
+ Function to be run at cog unload.
102
103
+ Cancels the execution of refresh_repos tasks.loop.
104
105
self.refresh_repos.cancel()
106
107
0 commit comments