Dynamica
An easy-to-use dynamic voice channel bot.
- updated
- variables
- 7
- images
- 1
- author
- sebastian.pietschner@gmail.com
- sha256
- f9da45e91add
Readme
Dynamica
Their Github
An easy-to-use dynamic voice channel bot.
Port
You will manual have to change the web port in the src/main.ts on line 24.
Variables
7 settings
-
Database Path
The path in which to create the sqlite database.
- env
- DATABASE_URL
- default
- file:/home/container/dynamica/db.sqlite
- rules
- required|string
- viewable
-
Token
The token for the discord bot.
- env
- TOKEN
- default
- none
- rules
- required|string
- viewable
- editable
-
Guild ID
Add only if using the bot in a single guild.
- env
- GUILD_ID
- default
- none
- rules
- string|nullable
- viewable
- editable
-
Sentry DSN
The DSN for Sentry.
- env
- SENTRY_DSN
- default
- none
- rules
- string|nullable
- viewable
- editable
-
MQTT URL
The URL for the MQTT broker.
- env
- MQTT_URL
- default
- none
- rules
- string|nullable
- viewable
- editable
-
MQTT Username
The username for the MQTT broker.
- env
- MQTT_USER
- default
- none
- rules
- string|nullable
- viewable
- editable
-
MQTT Password
The password for the MQTT broker.
- env
- MQTT_PASS
- default
- none
- rules
- string|nullable
- viewable
- editable
Installation script 45 lines container node:18-bookworm-slim entrypoint bash show hide
#!/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 "-----------------------------------------"