mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[CogManager] Removal of implicit paths and general cleanup (#2345)
- Removed memory-sided `CogManager._paths` attribute, as it has no practical use. - `[p]removepath` now removes the actual path displayed with the index specified in `[p]paths`. - New method for retreiving a deduplicated list of user-defined paths as `Path` objects - General cleanup so we don't have to do so much head-scratching next time an issue arises here Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
@@ -111,7 +111,7 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin):
|
||||
|
||||
self.main_dir = bot_dir
|
||||
|
||||
self.cog_mgr = CogManager(paths=(str(self.main_dir / "cogs"),))
|
||||
self.cog_mgr = CogManager()
|
||||
|
||||
super().__init__(*args, formatter=Help(), **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user