mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 04:38:55 -05:00
repo add/del docstrings
This commit is contained in:
parent
657d69f4cd
commit
c4589700a9
@ -39,6 +39,7 @@ class Downloader:
|
||||
|
||||
@repo.command(name="add")
|
||||
async def _repo_add(self, repo_name: str, repo_url: str):
|
||||
"""Adds repo to available repo lists"""
|
||||
self.repos[repo_name] = {}
|
||||
self.repos[repo_name]['url'] = repo_url
|
||||
self.update_repo(repo_name)
|
||||
@ -46,6 +47,7 @@ class Downloader:
|
||||
|
||||
@repo.command(name="remove")
|
||||
async def _repo_del(self, repo_name: str):
|
||||
"""Removes repo from repo list. COGS ARE NOT REMOVED."""
|
||||
if repo_name not in self.repos:
|
||||
await self.bot.say("That repo doesn't exist.")
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user