This page is generated from
docs/cog_guides/downloader.rst- please edit the source file instead of this page.
Downloader
This is the cog guide for the downloader cog. You will find detailed docs about usage and commands.
[p] is considered as your prefix.
NOTE
To use this cog, load it by typing this:
[p]load downloader
Usage
Install community cogs made by Cog Creators.
Community cogs, also called third party cogs, are not included in the default Red install.
Community cogs come in repositories. Repos are a group of cogs
you can install. You always need to add the creator's repository
using the [p]repo command before you can install one or more
cogs from the creator.
Commands
cog
NOTE
This command is locked to the bot owner.
Syntax
[p]cog
Description
Base command for cog installation management commands.
cog checkforupdates
Syntax
[p]cog checkforupdates
Description
Check for available cog updates (including pinned cogs).
This command doesn't update cogs, it only checks for updates.
Use [p]cog update to update cogs.
cog info
Syntax
[p]cog info <repo> <cog>
Description
List information about a single cog.
- Example:
[p]cog info 26-Cogs defender
Arguments
<repo>The repo to get cog info from.<cog>The cog to get info on.
cog install
Syntax
[p]cog install <repo> <cogs...>
Description
Install a cog from the given repo.
- Examples:
[p]cog install 26-Cogs defender[p]cog install Laggrons-Dumb-Cogs say roleinvite
Arguments
<repo>The name of the repo to install cogs from.<cogs...>The cog or cogs to install.
cog installversion
Syntax
[p]cog installversion <repo> <revision> <cogs...>
Description
Install a cog from the specified revision of given repo.
Revisions are "commit ids" that point to the point in the code when a specific change was made. The latest revision can be found in the URL bar for any GitHub repo by pressing "y" on that repo.
Older revisions can be found in the URL bar by viewing the commit history of any repo
- Example:
[p]cog installversion Broken-Repo e798cc268e199612b1316a3d1f193da0770c7016 cog_name
Arguments
<repo>The name of the repo to install cogs from.<revision>The revision to install from.<cogs...>The cog or cogs to install.
cog list
Syntax
[p]cog list <repo>
Description
List all available cogs from a single repo.
- Example:
[p]cog list 26-Cogs
Arguments
<repo>The repo to list cogs from.
cog listpinned
Syntax
[p]cog listpinned
Description
List currently pinned cogs.
cog pin
Syntax
[p]cog pin <cogs...>
Description
Pin cogs - this will lock cogs on their current version.
- Examples:
[p]cog pin defender[p]cog pin outdated_cog1 outdated_cog2
Arguments
<cogs...>The cog or cogs to pin. Must already be installed.
cog uninstall
Syntax
[p]cog uninstall <cogs...>
Description
Uninstall cogs.
You may only uninstall cogs which were previously installed by Downloader.
- Examples:
[p]cog uninstall defender[p]cog uninstall say roleinvite
Arguments
<cogs...>The cog or cogs to uninstall.
cog unpin
Syntax
[p]cog unpin <cogs...>
Description
Unpin cogs - this will remove the update lock from those cogs.
- Examples:
[p]cog unpin defender[p]cog unpin updated_cog1 updated_cog2
Arguments
<cogs...>The cog or cogs to unpin. Must already be installed and pinned.
cog update
Syntax
[p]cog update [cogs...]
Description
Update all cogs, or ones of your choosing.
- Examples:
[p]cog update[p]cog update defender
Arguments
[cogs...]The cog or cogs to update. If omitted, all cogs are updated.
cog updateallfromrepos
Syntax
[p]cog updateallfromrepos <repos...>
Description
Update all cogs from repos of your choosing.
- Examples:
[p]cog updateallfromrepos 26-Cogs[p]cog updateallfromrepos Laggrons-Dumb-Cogs 26-Cogs
Arguments
<repos...>The repo or repos to update all cogs from.
cog updatetoversion
Syntax
[p]cog updatetoversion <repo> <revision> [cogs...]
Description
Update all cogs, or ones of your choosing to chosen revision of one repo.
Note that update doesn't mean downgrade and therefore revision
has to be newer than the version that cog currently has installed. If you want to
downgrade the cog, uninstall and install it again.
See [p]cog installversion for an explanation of revision.
- Example:
[p]cog updatetoversion Broken-Repo e798cc268e199612b1316a3d1f193da0770c7016 cog_name
Arguments
<repo>The repo or repos to update all cogs from.<revision>The revision to update to.[cogs...]The cog or cogs to update.
findcog
Syntax
[p]findcog <command_name>
Description
Find which cog package a command comes from.
This will only work with loaded cogs.
- Example:
[p]findcog ping[p]findcog command ping[p]findcog cog Audio[p]findcog package audio
Arguments
<command_name>The command to search for.
findcog cog
Syntax
[p]findcog cog <cog_name>
Description
Find which cog package a cog comes from.
This will only work with loaded cogs.
- Example:
[p]findcog cog Audio
Arguments
<cog_name>The cog to find the cog package for.
findcog command
Syntax
[p]findcog command <command_name>
Description
Find which cog package a command comes from.
This will only work with loaded cogs.
- Example:
[p]findcog command ping
Arguments
<command_name>The command to search for.
findcog package
Syntax
[p]findcog package <cog_pkg_name>
Description
Show details about a cog package.
This will only work with loaded cogs.
- Example:
[p]findcog package audio
Arguments
<cog_pkg_name>The package to show details for.
pipinstall
NOTE
This command is locked to the bot owner.
Syntax
[p]pipinstall <deps...>
Description
Install a group of dependencies using pip.
- Examples:
[p]pipinstall bs4[p]pipinstall py-cpuinfo psutil
Improper usage of this command can break your bot, be careful.
Arguments
<deps...>The package or packages you wish to install.
repo
NOTE
This command is locked to the bot owner.
Syntax
[p]repo
Description
Base command for repository management.
repo add
Syntax
[p]repo add <name> <repo_url> [branch]
Description
Add a new repo.
- Examples:
[p]repo add 26-Cogs https://github.com/Twentysix26/x26-Cogs[p]repo add Laggrons-Dumb-Cogs https://github.com/retke/Laggrons-Dumb-Cogs v3
Repo names can only contain characters A-z, numbers, underscores, and hyphens. The branch will be the default branch if not specified.
Arguments
<name>The name given to the repo.<repo_url>URL to the cog branch. Usually GitHub or GitLab.[branch]Optional branch to install cogs from.
repo delete
Syntax
[p]repo delete <repo>
TIP
Aliases: repo remove, repo del
Description
Remove repos and their files.
- Examples:
[p]repo delete 26-Cogs[p]repo delete 26-Cogs Laggrons-Dumb-Cogs
Arguments
<repos...>The repo or repos to remove.
repo info
Syntax
[p]repo info <repo>
Description
Show information about a repo.
- Example:
[p]repo info 26-Cogs
Arguments
<repo>The name of the repo to show info about.
repo list
Syntax
[p]repo list
Description
List all installed repos.
repo rename
Syntax
[p]repo rename <current_name> <new_name>
Description
Rename a repo.
- Example:
[p]repo rename JackCogs jack
Arguments
<current_name>The repo to rename.<new_name>The new name for the repo.
repo update
Syntax
[p]repo update [repos...]
Description
Update all repos, or ones of your choosing.
This will not update the cogs installed from those repos.
- Examples:
[p]repo update[p]repo update 26-Cogs[p]repo update 26-Cogs Laggrons-Dumb-Cogs
Arguments
[repos...]The name or names of repos to update. If omitted, all repos are updated.
Installation Guides
- Installing Red
- Creating a bot account
- Updating Red
- Backing Up and Restoring Red
- About Virtual Environments
- Setting up auto-restart using batch on Windows
- Setting up auto-restart on Mac
- Setting up auto-restart using systemd on Linux
Cog Reference
User guides
- Getting started
- Running Red on Fluxer
- About Privileged Intents
- About public (big) bots
- Admin
- Alias
- Audio
- Cleanup
- Cog Manager UI
- Core
- CustomCommands
- Dev
- Downloader
- Economy
- Filter
- General
- Image
- Permissions
- Mod
- ModLog
- Mutes
- Reports
- Streams
- Trivia
- Warnings
- Red and End User Data
Cog Creation Guides
- Creating cogs for Red
- Slash Commands and Interactions
- Publishing cogs for Red
- Becoming an Approved Cog Creator
- Versioning
- End-user Guarantees
- Developer Guarantees
- Breaking Change Notices
Cog Development Framework Reference
- Shared API Keys
- Bank
- Bot
- Command Check Decorators
- App Command Check Decorators
- Commands Package
- App Commands Package
- Config
- Data Manager
- Custom Events
- Internationalization Framework
- Mod log
- RPC
- Tree
- Utility Functions
Others
Legacy (Red V2)