The golang based discord bot for fragforce.
Runs the fragforce @fragbot
There are no ports required for fragbot
Name | Tag |
---|---|
ghcr.io/ptero-eggs/yolks:alpine | ghcr.io/ptero-eggs/yolks:alpine |
Name | Description | Environment Variable | Default Value | User Viewable | User Editable |
---|---|---|---|---|---|
Discord Bot Token | The token that is to be used for the bot. | DISCORD_TOKEN | ThisNeedsToBeChanged | Yes | Yes |
#!/bin/ash
# fragbot Installation Script
#
# Server Files: /mnt/server
export GOPATH=$HOME/go
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
cd
apk add --no-cache --update git
echo "pulling the fragbot repo"
git clone https://github.com/fragforce/fragbot.git
cd fragbot/
go mod download
echo "building fragbot"
go build
echo "build complete copying parkertron and example configs over"
cp fragbot /mnt/server/
if [ -f /mnt/server/config.json ]; then
echo "config file exists already"
else
cp -r /root/fragbot/config.example.json /mnt/server/config.json
fi
echo "Install complete. If you watched this. Congrats."