Utility functions and constants for use in your RickBot cogs.
Embed color constants:
MAIN_EMBED_COLOR- Primary purple colorERROR_EMBED_COLOR- Error red colorSUCCESS_EMBED_COLOR- Success green color
from helpers.colors import MAIN_EMBED_COLOR
import discord
embed = discord.Embed(
title="Hello",
description="World",
color=MAIN_EMBED_COLOR
)Add your own utility functions in the custom/ folder:
# helpers/custom/my_utils.py
async def my_helper_function(ctx, arg):
"""Your custom helper"""
# Your code here
passThen import in your cogs:
from helpers.custom.my_utils import my_helper_function