Egg Repository

Pterodactyl Community Egg Repository

Red

A multifunction Discord bot https://github.com/Cog-Creators/Red-DiscordBot

Read Me

Red-DiscordBot

From their Github

A multifunction Discord bot

Server Ports

No port are required to run Red.

if you want to use the internal Lavalink Server, you need to allocate port 2333 as primary

Additional Requirements

When using the Audio Cog the bot will attempt to save files to /tmp resulting in a disk space error. You may also see this same error when attempting to install a cog, due to pip using /tmp to build the requirements. To resolve this error you must increase the size of tmpfs using custom container policy.

For additional details see: https://pterodactyl.io/wings/1.0/configuration.html#other-values

Mods/Plugins may require ports to be added to the server

Yolks
NameTag
ghcr.io/ptero-eggs/yolks:bot_redghcr.io/ptero-eggs/yolks:bot_red
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Discord Bot TokenGet your own token here - https://discordapp.com/developers/applications/TOKENGET_YOUR_OWNYesYes
Command PrefixThe prefix for commands from the bot.PREFIX.YesYes
OwnerOwner of the Bot to use special commandsOWNERYesYes
Install Script
#!/bin/bash
# red-discordbot install script

## install deps
mkdir -p /usr/share/man/man1
apt update
apt -y install git ca-certificates dnsutils iproute2 make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev libgdbm-dev uuid-dev git openjdk-17-jre-headless

## config folder layouts
echo -e "generating config folder layout"
mkdir -p /mnt/server/.config/{Red-DiscordBot,share}/ /mnt/server/.local/share/Red-DiscordBot/data/pterodactyl/
cd /mnt/server/
ln -s .local/share/Red-DiscordBot/data/pterodactyl/ ./configs

## install red
echo -e "add container user to install"
ln -s /mnt/server/ /home/container
useradd -m -d /home/container container
chown -R container /mnt/server/
echo -e "install red locally as user"
pip install --upgrade pip
su - container -c 'pip install -U pip wheel'
su - container -c 'pip install -U Red-DiscordBot'

## ensure the config is in place if it doesn't exist
if [ ! -f /mnt/server/.config/Red-DiscordBot/config.json ]; then
    curl https://raw.githubusercontent.com/ptero-eggs/application-eggs/main/bots/discord/redbot/config.json -o /mnt/server/.config/Red-DiscordBot/config.json
fi

echo "-------------------------------------------------------"
echo "Installation completed"
echo "-------------------------------------------------------"