An easy-to-use dynamic voice channel bot.
You will manual have to change the web port in the src/main.ts on line 24.
Name | Tag |
---|---|
Nodejs 18 | ghcr.io/ptero-eggs/yolks:nodejs_18 |
Name | Description | Environment Variable | Default Value | User Viewable | User Editable |
---|---|---|---|---|---|
Database Path | The path in which to create the sqlite database. | DATABASE_URL | file:/home/container/dynamica/db.sqlite | Yes | No |
Token | The token for the discord bot. | TOKEN | Yes | Yes | |
Guild ID | Add only if using the bot in a single guild. | GUILD_ID | Yes | Yes | |
Sentry DSN | The DSN for Sentry. | SENTRY_DSN | Yes | Yes | |
MQTT URL | The URL for the MQTT broker. | MQTT_URL | Yes | Yes | |
MQTT Username | The username for the MQTT broker. | MQTT_USER | Yes | Yes | |
MQTT Password | The password for the MQTT broker. | MQTT_PASS | Yes | Yes |
#!/bin/bash
apt update
apt -y install tar curl jq git
mkdir -p /mnt/server
cd /mnt/server
GITHUB_PACKAGE="DynamicaBot/Dynamica-V2"
# Find GitHub download URL for Muse for specified version
LATEST_JSON=$(curl --silent "https://api.github.com/repos/${GITHUB_PACKAGE}/releases/latest")
RELEASES=$(curl --silent "https://api.github.com/repos/${GITHUB_PACKAGE}/releases")
if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')
else
VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .tag_name')
if [ "${VERSION}" == "${VERSION_CHECK}" ]; then
DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .tarball_url')
else
echo -e "Could not find version \"${VERSION}\" of Muse. Defaulting to latest release..."
DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq -r '.tarball_url')
fi
fi
curl -sSL -o dynamica.tar.gz ${DOWNLOAD_URL}
tar xvf dynamica.tar.gz --strip-components=1
rm dynamica.tar.gz
#curl -sSL -o tsconfig.json https://pteropaste.com/xqhjja443pbm
yarn add tsup --dev
yarn install --frozen-lockfile
yarn generate
yarn build
rm -rf .github/ .vscode/ Dockerfile partial.Dockerfile entrypoint.sh dynamica-egg.json
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"