LakeYS / Discord-Trivia-Bot

TriviaBot: Play trivia in Discord! Powered by discord.js and OpenTDB, with 24 categories and three modes of play.
http://lakeys.net/triviabot/
Apache License 2.0
84 stars 39 forks source link

Change run.sh to work when called from any folder #206

Closed Peterr-K closed 3 years ago

Peterr-K commented 3 years ago

Hi

please change run.sh so it can be called from any folder. Now it only works when called from the folder, where bot is installed.

thanks!

LakeYS commented 3 years ago

The run.sh file is intended as a quick launch from the respective folder. I would advise creating a specialized run script if there is need to start the bot from outside this folder. (i.e. you can create a script that contains the following line: /path/to/TriviaBot/run.sh or cd /path/to/TriviaBot && node index.js to accomplish this)