A very clumsy python bot for discord
No ports are required to run CorpBot. You can assign a random port to the bot.
Name | Tag |
---|---|
ghcr.io/ptero-eggs/yolks:python_3.8 | ghcr.io/ptero-eggs/yolks:python_3.8 |
Name | Description | Environment Variable | Default Value | User Viewable | User Editable |
---|---|---|---|---|---|
Discord Bot Token | Get your own token here - https://discordapp.com/developers/applications/ | TOKEN | GET_YOUR_OWN | Yes | Yes |
Command Prefix | The prefix for commands from the bot. | PREFIX | . | Yes | Yes |
#!/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 "-----------------------------------------"