Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DravenTec authored Apr 9, 2023
1 parent c396abb commit 0947866
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,6 @@ This Bash script updates the Phantombot software.

The bot script and the update script must be located in the home directory of the user, as recommended by Phantombot, e.g. `/home/botuser/`. The user 'botuser' must have sudo privileges to start and stop the bot. It's important that both the script and the bot are located directly in the home directory and sudo privileges are available.

## Variables

The following variables are used in the script:

- `LATEST_RELEASE_PROJECT`: The name of the project and repository on Github from which to download the latest version of Phantombot release.
- `SERVICE_NAME`: The name of the service for Phantombot.
- `REQUIRED_COMMANDS`: A list of required commands (tools) that need to be installed on the system.

## Functions

The script includes the following functions:

- `get_latest_release()`: This function uses the Github API to retrieve the latest version of Phantombot release.
- `handle_error()`: This function displays an error message and exits the script.

## Update Script

The script performs the following steps:
Expand Down

0 comments on commit 0947866

Please sign in to comment.