issues
search
simonknittel
/
discord-bot-api
This is a plugin based, self-hosted and configurable Discord bot. You can use plugins to play music, do a raffle or other things. You can even create your own ones!
GNU General Public License v3.0
11
stars
5
forks
source link
Auto update
#24
Open
simonknittel
opened
8 years ago
simonknittel
commented
8 years ago
[Bot] Download the latest updater which is located in a dedicated git repository.
Download with
curl
(or something like that)
Download the updater to a directory named
updater
which will be located in the root directory of the bot
Install dependencies of the updater if needed
[Bot] Start the updater
[Bot] Close itself
[Updater] Download the latest release of the Discord Bot API
Download either with
curl
(or something like that) or
git pull origin master
[Updater] Migrate files (like the
config.json
) and install new dependencies if needed
The migration code will be stored JavaScript modules for each specific version
[Updater] Start the updated bot
[Updater] Close itself
[Bot] Delete the
updater
directory
curl
(or something like that)updater
which will be located in the root directory of the botcurl
(or something like that) orgit pull origin master
config.json
) and install new dependencies if neededupdater
directory