CorpBot
applicationsA very clumsy python bot for discord https://github.com/corpnewt/CorpBot.py
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
Docker Images (1)
| Name | Image |
|---|---|
ghcr.io/ptero-eggs/yolks:python_3.8 | ghcr.io/ptero-eggs/yolks:python_3.8 |
Startup Command
/usr/local/bin/python Main.py Variables (2)
Discord Bot Token
Get your own token here - https://discordapp.com/developers/applications/
- Environment:
TOKEN- Default:
GET_YOUR_OWN- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string
Command Prefix
The prefix for commands from the bot.
- Environment:
PREFIX- Default:
.- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string
Installation Script
Container:
python:3.8-slim-bookwormEntrypoint:
bash#!/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 "-----------------------------------------"