Skip to content

Dynamica

An easy-to-use dynamic voice channel bot.

egg-dynamica.json

updated

Install

Installer image
node:18-bookworm-slim
Install script
45 lines

Image

  • Nodejs 18 ghcr.io/ptero-eggs/yolks:nodejs_18

Startup

The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.

7 variables

Startup command

npx prisma migrate deploy && yarn start
  • The path in which to create the sqlite database.

    DATABASE_URLUsers can see

    required|string

  • The token for the discord bot.

    TOKENUsers can edit

    required|stringA value is required.

  • Add only if using the bot in a single guild.

    GUILD_IDUsers can edit

    string|nullable

  • The DSN for Sentry.

    SENTRY_DSNUsers can edit

    string|nullable

  • The URL for the MQTT broker.

    MQTT_URLUsers can edit

    string|nullable

  • The username for the MQTT broker.

    MQTT_USERUsers can edit

    string|nullable

  • The password for the MQTT broker.

    MQTT_PASSUsers can edit

    string|nullable

Wings

Stop command
^C (SIGINT)
Running when the console shows
Bot logged in as

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.

Changes

  1. Import chatbots

    · Daniel Barton · f917e8a

All changes on GitHub

Problem with this egg?

Open an issue on GitHub. Include your Panel and Wings versions.

Install script 45 lines bash in node:18-bookworm-slim Show
#!/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 "-----------------------------------------"