fragbot
The fragforce discord bot. located at https://github.com/fragforce/fragbot
Install
- Installer image
- golang:1.12-alpine
- Install script
- 34 lines
Image
- Alpine ghcr.io/ptero-eggs/yolks:alpine
Startup
The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.
1 variable
Startup command
./fragbotThe token that is to be used for the bot.
DISCORD_TOKENUsers can edit
required|string|max:128
Wings
- Stop command
- shutdown
- Running when the console shows
- Bot is now running
Files Wings edits
Wings sets these values in these files before each start.
config.json json
- token
- {{server.build.env.DISCORD_TOKEN}}
Readme
fragbot
Their Github
The golang based discord bot for fragforce.
Runs the fragforce @fragbot
Server Ports
There are no ports required for fragbot
Problem with this egg?
Open an issue on GitHub. Include your Panel and Wings versions.
Install script 34 lines ash in golang:1.12-alpine Show Hide
#!/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."