Egg Repository

Pterodactyl Community Egg Repository

CorpBot

A very clumsy python bot for discord https://github.com/corpnewt/CorpBot.py

Read Me

CorpBot.py

From their Github

A very clumsy python bot for discord

Server Ports

No ports are required to run CorpBot. You can assign a random port to the bot.

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

Yolks
NameTag
ghcr.io/ptero-eggs/yolks:python_3.8ghcr.io/ptero-eggs/yolks:python_3.8
Variables and Startup

Startup Command

/usr/local/bin/python Main.py

Variables

Discord Bot Token

Get your own token here - https://discordapp.com/developers/applications/

Environment Variable: TOKEN
Default Value: GET_YOUR_OWN
User Viewable:
User Editable:
Command Prefix

The prefix for commands from the bot.

Environment Variable: PREFIX
Default Value: .
User Viewable:
User Editable:
Install Script
#!/bin/bash
# CoprBot Install Script
#
## create dir is it doesn't exist
if [ ! -d /mnt/server/ ]; then
    mkdir /mnt/server/
fi

## move to directory
cd /mnt/server/

## install deps
apt update
apt install -y git gcc curl

## git clone 
git clone https://github.com/corpnewt/CorpBot.py.git .

## Modify Install.py to work properly in egg format
mv Install.py Install.py.orig
sed -n '/press enter to exit/q;p' Install.py.orig > Install.py
sed -i 's/"-U"/"-U", "--target", "\/mnt\/server\/"/g' Install.py

## run Install.py script
python Install.py

## get config during install
if [ ! -f /mnt/server/settings_dict.json ]; then
    curl https://raw.githubusercontent.com/ptero-eggs/application-eggs/main/bots/discord/corpbot/settings_dict.json -o settings_dict.json
fi


## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"
Installation Imagepython:3.8-slim-bookwormInstallation Entrypointbash