Skip to content

Cog-Creators/Cog-Cookiecutter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Cookiecutter template for Red cogs

Cookiecutter template for making a cog for Red.

Quickstart

Install the latest Cookiecutter if you haven't installed it yet (this requires Cookiecutter 1.5.0 or higher):

pip install -U cookiecutter

Generate a cog for Red:

cookiecutter https://github.com/Cog-Creators/cog-cookiecutter

Supported variables

The values of variables short, long, install_msg, and end_user_data_statement are put directly inside JSON string quotes, no escaping is done to the input.

  • package_name - Name of a cog package. This is the folder name the cog will reside in and the name that will have to be used when loading the cog. This name should be lowercase.
  • cog_class_name - Name of the cog's class. This name is shown in help and needs to be valid Python identifier. This name should be TitleCase.
  • config_identifier - Config identifier for the cog. This is a unique identifier that will be used in Red's Config. We recommend using your Discord user ID.
  • short - A short description of the cog. See info.json format documentation.
  • long - A long description of the cog. See info.json format documentation.
  • install_msg (optional) - The message that gets displayed when a cog is installed. See info.json format documentation.
  • end_user_data_statement - A statement explaining what end user data the cog is storing. See info.json format documentation and Guidelines for Cog Creators.
  • authors - Colon-separated list of authors, e.g. "Guido van Rossum; Victor Stinner; Brett Cannon". See info.json format documentation.
  • tags - Space-separated list of tags, e.g. "image tools statistics". See info.json format documentation.

About

Cookiecutter template for making a cog for Red.

Topics

Resources

License

Stars

Watchers

Forks

Languages