Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added shell script for updating configuration
- Loading branch information
1 parent
191ddc1
commit e7df2b8
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
echo -e "This will automatically update your discord-config.json" | ||
echo -e "to populate the server list with all servers your bot" | ||
echo -e "has access to." | ||
echo -e "" | ||
echo -e "Your token must be present in discord-config.json" | ||
echo -e "" | ||
echo -e "If you have any existing servers in the configuration," | ||
echo -e "they will not be overwritten." | ||
echo -e "" | ||
echo -e "Type 'accept' to continue with the file update." | ||
echo -e "" | ||
read -p "> " answer | ||
echo -e "" | ||
|
||
if [[ $answer = accept ]] ; then | ||
node $DIR/script/update-config.js | ||
else | ||
echo -e "You did not type 'accept', cancelling ..." | ||
sleep 3 | ||
fi | ||
|
||
exit |