CorpBot
A very clumsy python bot for discord https://github.com/corpnewt/CorpBot.py
Install
- Installer image
- python:3.8-slim-bookworm
- Install script
- 36 lines
Image
- Python 3.8 ghcr.io/ptero-eggs/yolks:python_3.8
Startup
The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.
2 variables
Startup command
/usr/local/bin/python Main.pyGet 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
Wings
- Stop command
- ^C (SIGINT)
- Running when the console shows
- Logged in as
Files Wings edits
Wings sets these values in these files before each start.
settings_dict.json json
- token
- {{server.build.env.TOKEN}}
- prefix
- {{server.build.env.PREFIX}}
Readme
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
Problem with this egg?
Open an issue on GitHub. Include your Panel and Wings versions.
Install script 36 lines bash in python:3.8-slim-bookworm Show Hide
#!/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 "-----------------------------------------"