diff --git a/e-rebuild.sh b/e-rebuild.sh index 96b4b06..18ec4a2 100644 --- a/e-rebuild.sh +++ b/e-rebuild.sh @@ -1 +1,15 @@ -#!/bin/sh \ No newline at end of file +#!/bin/sh +root=$(pwd) + +# remove old backup +rm -rf elliebot_old 1>/dev/null 2>&1 + +# make a new backup +cp -rT elliebot elliebot_old 1>/dev/null 2>&1 + +wget -q -N https://toastielab.dev/Emotions-stuff/ellie-bash-installer/raw/branch/main/rebuild.sh +bash rebuild.sh + +cd "$root" +rm "$root/n-rebuild.sh" +exit 0 \ No newline at end of file diff --git a/e-run.sh b/e-run.sh index 96b4b06..572981c 100644 --- a/e-run.sh +++ b/e-run.sh @@ -1 +1,20 @@ -#!/bin/sh \ No newline at end of file +#!/bin/sh +echo "Running EllieBot" +root=$(pwd) + +if hash dotnet 2>/dev/null +then + echo "Dotnet installed." +else + echo "Dotnet is not installed. Please install dotnet." + exit 1 +fi + +cd "$root/elliebot/output" +echo "Running EllieBot. Please wait." +dotnet EllieBot.dll +echo "Done" + +cd "$root" +rm "$root/e-run.sh" +exit 0 \ No newline at end of file