-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added readme, license, and setup. Updated pipfile to reflect only nee…
…ded packages.
- Loading branch information
1 parent
4dbcd17
commit 510272b
Showing
10 changed files
with
198 additions
and
39 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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) [year] [fullname] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,90 @@ | ||
# Auto Update an Oxide Rust Server. Can be used with any server, but designed around using LGSM. | ||
|
||
This program was written to allow automatically updating Oxide when a new version is detected. It also allows for notification messages to be sent via Discord and RCON. | ||
|
||
This application does not require any input to run, but it will default to creating a configuration file in the same directory it is executed from. | ||
To change this directory, please specify on the command line. rusterverautoupdate.py /myconfig/path/ SERVER1 | ||
SERVER1 is optional, but can be used to run mutliple instances using the same configuration. Each instance should have unique settings placed in their section. | ||
rustserverautoupdate.ini will be created on first run, and updated if any new options are added or removed. | ||
|
||
REQUIRES: packages: requests, websockets | ||
|
||
|
||
*oxide_log_dir | ||
* Directory of the oxide log files. | ||
* DEFAULT: ~/serverfiles/oxide/logs | ||
*oxide_git_url | ||
* URL of Oxide GIT. This is used to check for the latest release. Has not been tested against non-default repositories. | ||
* DEFAULT: https://api.github.com/repositories/94599577/releases/latest | ||
*oxide_check_time_in_min | ||
* How long to wait between update checks in minutes. | ||
* DEFAULT: 15 | ||
*oxide_auto_update | ||
* Enable auto updates. If enabled. bash command below is ran after last notification. | ||
* DEFAULT: no | ||
*bash_get_update_command | ||
* Commands to run after update detected and last notification has been sent. | ||
* DEFAULT: ~/./rustserver stop | ~/./rustserver mods-update | ~/./rustserver start | ||
*use_rcon | ||
* Use RCON to send notification to server before updating. | ||
* DEFAULT: yes | ||
*use_discord | ||
* Use Discord to send notification to channel before updating. | ||
* DEFAULT: no | ||
*rcon_ip | ||
* RCON IP | ||
* DEFAULT: 127.0.0.1 | ||
*rcon_port | ||
* RCON Port | ||
* DEFAULT: 28016 | ||
*rcon_pass | ||
* RCON Password | ||
* DEFAULT: CHANGE_ME | ||
*discord_webhook | ||
* Webhook from Discord Bot Setup. | ||
* DEFAULT: | ||
*discord_bot_name | ||
* Bot Name to Display to Discord | ||
* DEFAULT: RustPythonBot | ||
*discord_bot_avatar_url | ||
* Bot Avatar Image URL | ||
* DEFAULT: | ||
*discord_msg_game_name | ||
* Discord Message: Game Name to Display. | ||
* DEFAULT: My Rust Game | ||
*discord_msg_server_name | ||
* Discord Message: Name of Server | ||
* DEFAULT: My Server | ||
*discord_msg_server_ip_port | ||
* Discord Message SERVER IP:PORT to Display. | ||
* DEFAULT: 127.0.0.1:28015 | ||
*discord_msg_server_host_name | ||
* Discord Message: Host Name to Display. | ||
* DEFAULT: | ||
*discord_msg_title | ||
* Discord Message: Title to Display. | ||
* DEFAULT: 🚧 ALERT | ||
*send_15min_warn | ||
* Send 15 Minute Warning Before Update. | ||
* DEFAULT: yes | ||
*send_10min_warn | ||
* Send 10 Minute Warning Before Update. | ||
* DEFAULT: yes | ||
*send_5min_warn | ||
* Send 5 Minute Warning Before Update. | ||
* DEFAULT: yes | ||
*send_1min_warn | ||
* Send 1 Minute Warning Before Update. | ||
* DEFAULT: yes | ||
*15min_msg | ||
* Message to be displayed for 15 minute warning. | ||
* DEFAULT: Oxide Update Detected. Server will restart in 15 minutes for update. | ||
*10min_msg | ||
* Message to be displayed for 10 minute warning. | ||
* DEFAULT: Oxide Update Scheduled. Server will restart in 10 minutes for update. | ||
*5min_msg | ||
* Message to be displayed for 5 minute warning. | ||
* DEFAULT: Oxide Update Scheduled. Server will restart in 5 minutes for update. | ||
*1min_msg | ||
* Message to be displayed for 1 minute warning. | ||
* DEFAULT: FINAL WARNING! SERVER RESTARTING FOR OXIDE UPDATE IN 1 MINUTE!! |
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
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
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
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
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
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,22 @@ | ||
import setuptools | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="rustserverautoupdate-Dateranoth", | ||
version="0.0.1", | ||
author="Dateranoth", | ||
author_email="[email protected]", | ||
description="A package to update rust when Oxide updates. Optionall send message to Discord or RCON", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/dateranoth/rustserverautoupdatepython", | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
python_requires='>=3.7', | ||
) |