Skip to content

Red

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

egg-red.json

updated

Install

Installer image
python:3.11-slim
Install script
32 lines

Image

  • yolks ghcr.io/ptero-eggs/yolks:bot_red

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

3 variables

Startup command

PATH=$PATH:/home/container/.local/bin redbot pterodactyl --token GET_YOUR_OWN --prefix .
  • Get your own token here - https://discordapp.com/developers/applications/

    TOKENUsers can edit

    required|string

  • The prefix for commands from the bot.

    PREFIXUsers can edit

    required|string

  • Owner of the Bot to use special commands

    OWNERUsers can edit

    required|string|max:30A value is required.

Wings

Stop command
^C (SIGINT)
Running when the console shows
Invite URL:

Readme

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

Changes

  1. Red-Bot: Remove incorrect package to fix install

    · Daniel Barton · 7a4dd04

  2. Import chatbots

    · Daniel Barton · f917e8a

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 32 lines bash in python:3.11-slim Show
#!/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

## 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 --no-warn-script-location'
su - container -c 'pip install -U Red-DiscordBot --no-warn-script-location'

## 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 "-------------------------------------------------------"