jmusicbot-docker/run_bot.sh
2021-09-19 19:48:47 -05:00

11 lines
359 B
Bash

#!/bin/sh
echo "Starting JMusicBot"
VER=$(curl --silent "https://api.github.com/repos/jagrosh/MusicBot/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
if [ ! -f JMusicBot-$VER.jar ]; then
wget https://github.com/jagrosh/MusicBot/releases/download/$VER/JMusicBot-$VER.jar
fi
java -Dnogui=true -Dconfig=/config/config.txt -jar JMusicBot-$VER.jar