DiscordBotLinuxMonitor 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/DiscordBotLinuxMonitor.egg-info/PKG-INFO +4 -4
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/PKG-INFO +4 -4
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/README.md +3 -3
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/discordbotlinuxmonitor/__main__.py +5 -7
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/discordbotlinuxmonitor/discordbotlinuxmonitor.py +1 -1
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/setup.py +1 -1
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/DiscordBotLinuxMonitor.egg-info/SOURCES.txt +0 -0
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/DiscordBotLinuxMonitor.egg-info/dependency_links.txt +0 -0
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/DiscordBotLinuxMonitor.egg-info/requires.txt +0 -0
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/DiscordBotLinuxMonitor.egg-info/top_level.txt +0 -0
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/LICENSE.md +0 -0
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/discordbotlinuxmonitor/__init__.py +0 -0
- {discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: DiscordBotLinuxMonitor
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)
|
|
5
5
|
Home-page: https://github.com/QuentinCG/Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
|
@@ -110,10 +110,10 @@ python3 -m discordbotlinuxmonitor --help
|
|
|
110
110
|
# Use "--nodebug" to not show any warning information during command
|
|
111
111
|
|
|
112
112
|
# Start the discord bot Linux monitor (First time)
|
|
113
|
-
python3 -m discordbotlinuxmonitor --config_file config-example.json --force_sync_on_startup
|
|
113
|
+
python3 -m discordbotlinuxmonitor --config_file config-example.json --force_sync_on_startup --debug
|
|
114
114
|
|
|
115
115
|
# Start the discord bot Linux monitor (after first time)
|
|
116
|
-
python3 -m discordbotlinuxmonitor --config_file config-example.json
|
|
116
|
+
python3 -m discordbotlinuxmonitor --config_file config-example.json
|
|
117
117
|
```
|
|
118
118
|
- Go to discord (restart discord if you were already in it)
|
|
119
119
|
- You should see welcome messages on channels you configured in the config file and be able to communicate with the bot using command defined in previous section
|
|
@@ -167,7 +167,7 @@ Description=Discord Bot Linux Monitor Service
|
|
|
167
167
|
After=network.target
|
|
168
168
|
|
|
169
169
|
[Service]
|
|
170
|
-
ExecStart=/home/$DISCORD_BOT_SERVICE_USER/venv/bin/python3 -m discordbotlinuxmonitor --config_file ${DISCORD_BOT_FOLDER}config.json
|
|
170
|
+
ExecStart=/home/$DISCORD_BOT_SERVICE_USER/venv/bin/python3 -m discordbotlinuxmonitor --config_file ${DISCORD_BOT_FOLDER}config.json
|
|
171
171
|
WorkingDirectory=$DISCORD_BOT_FOLDER
|
|
172
172
|
User=$DISCORD_BOT_SERVICE_USER
|
|
173
173
|
Group=$DISCORD_BOT_SERVICE_GROUP
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: DiscordBotLinuxMonitor
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)
|
|
5
5
|
Home-page: https://github.com/QuentinCG/Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
|
@@ -110,10 +110,10 @@ python3 -m discordbotlinuxmonitor --help
|
|
|
110
110
|
# Use "--nodebug" to not show any warning information during command
|
|
111
111
|
|
|
112
112
|
# Start the discord bot Linux monitor (First time)
|
|
113
|
-
python3 -m discordbotlinuxmonitor --config_file config-example.json --force_sync_on_startup
|
|
113
|
+
python3 -m discordbotlinuxmonitor --config_file config-example.json --force_sync_on_startup --debug
|
|
114
114
|
|
|
115
115
|
# Start the discord bot Linux monitor (after first time)
|
|
116
|
-
python3 -m discordbotlinuxmonitor --config_file config-example.json
|
|
116
|
+
python3 -m discordbotlinuxmonitor --config_file config-example.json
|
|
117
117
|
```
|
|
118
118
|
- Go to discord (restart discord if you were already in it)
|
|
119
119
|
- You should see welcome messages on channels you configured in the config file and be able to communicate with the bot using command defined in previous section
|
|
@@ -167,7 +167,7 @@ Description=Discord Bot Linux Monitor Service
|
|
|
167
167
|
After=network.target
|
|
168
168
|
|
|
169
169
|
[Service]
|
|
170
|
-
ExecStart=/home/$DISCORD_BOT_SERVICE_USER/venv/bin/python3 -m discordbotlinuxmonitor --config_file ${DISCORD_BOT_FOLDER}config.json
|
|
170
|
+
ExecStart=/home/$DISCORD_BOT_SERVICE_USER/venv/bin/python3 -m discordbotlinuxmonitor --config_file ${DISCORD_BOT_FOLDER}config.json
|
|
171
171
|
WorkingDirectory=$DISCORD_BOT_FOLDER
|
|
172
172
|
User=$DISCORD_BOT_SERVICE_USER
|
|
173
173
|
Group=$DISCORD_BOT_SERVICE_GROUP
|
|
@@ -81,10 +81,10 @@ python3 -m discordbotlinuxmonitor --help
|
|
|
81
81
|
# Use "--nodebug" to not show any warning information during command
|
|
82
82
|
|
|
83
83
|
# Start the discord bot Linux monitor (First time)
|
|
84
|
-
python3 -m discordbotlinuxmonitor --config_file config-example.json --force_sync_on_startup
|
|
84
|
+
python3 -m discordbotlinuxmonitor --config_file config-example.json --force_sync_on_startup --debug
|
|
85
85
|
|
|
86
86
|
# Start the discord bot Linux monitor (after first time)
|
|
87
|
-
python3 -m discordbotlinuxmonitor --config_file config-example.json
|
|
87
|
+
python3 -m discordbotlinuxmonitor --config_file config-example.json
|
|
88
88
|
```
|
|
89
89
|
- Go to discord (restart discord if you were already in it)
|
|
90
90
|
- You should see welcome messages on channels you configured in the config file and be able to communicate with the bot using command defined in previous section
|
|
@@ -138,7 +138,7 @@ Description=Discord Bot Linux Monitor Service
|
|
|
138
138
|
After=network.target
|
|
139
139
|
|
|
140
140
|
[Service]
|
|
141
|
-
ExecStart=/home/$DISCORD_BOT_SERVICE_USER/venv/bin/python3 -m discordbotlinuxmonitor --config_file ${DISCORD_BOT_FOLDER}config.json
|
|
141
|
+
ExecStart=/home/$DISCORD_BOT_SERVICE_USER/venv/bin/python3 -m discordbotlinuxmonitor --config_file ${DISCORD_BOT_FOLDER}config.json
|
|
142
142
|
WorkingDirectory=$DISCORD_BOT_FOLDER
|
|
143
143
|
User=$DISCORD_BOT_SERVICE_USER
|
|
144
144
|
Group=$DISCORD_BOT_SERVICE_GROUP
|
{discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/discordbotlinuxmonitor/__main__.py
RENAMED
|
@@ -11,7 +11,7 @@ def main() -> None:
|
|
|
11
11
|
|
|
12
12
|
# Define available arguments
|
|
13
13
|
parser.add_argument('--config_file', type=str, required=True, help='Path to the configuration file (must be a JSON file)')
|
|
14
|
-
parser.add_argument('--force_sync_on_startup',
|
|
14
|
+
parser.add_argument('--force_sync_on_startup', action='store_true', help='Force discord command synchronization on startup (do it only the first time, because after, you will have a discord command to do it if really needed)')
|
|
15
15
|
|
|
16
16
|
parser.add_argument('--debug', action='store_true', help='Enable debug mode')
|
|
17
17
|
parser.add_argument('--nodebug', action='store_true', help='Disable all logs')
|
|
@@ -35,12 +35,10 @@ def main() -> None:
|
|
|
35
35
|
sys.exit(1)
|
|
36
36
|
config_file: str = args.config_file
|
|
37
37
|
|
|
38
|
-
#
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
sys.exit(1)
|
|
43
|
-
force_sync_on_startup: bool = args.force_sync_on_startup
|
|
38
|
+
# Check if force_sync_on_startup is provided
|
|
39
|
+
force_sync_on_startup: bool = False
|
|
40
|
+
if args.force_sync_on_startup:
|
|
41
|
+
force_sync_on_startup = True
|
|
44
42
|
|
|
45
43
|
# Prepare the Discord bot (will throw an exception if the configuration is invalid)
|
|
46
44
|
discord_bot_linux_monitor = DiscordBotLinuxMonitor(config_file=config_file, force_sync_on_startup=force_sync_on_startup)
|
|
@@ -30,7 +30,7 @@ __email__ = "quentin@comte-gaz.com"
|
|
|
30
30
|
__license__ = "MIT License"
|
|
31
31
|
__copyright__ = "Copyright Quentin Comte-Gaz (2024)"
|
|
32
32
|
__python_version__ = "3.+"
|
|
33
|
-
__version__ = "1.0.
|
|
33
|
+
__version__ = "1.0.3 (2024/09/14)"
|
|
34
34
|
__status__ = "Usable for any Linux project"
|
|
35
35
|
|
|
36
36
|
# pyright: reportMissingTypeStubs=false
|
|
@@ -6,7 +6,7 @@ with io.open(file='README.md', mode='r', encoding='utf-8') as readme_file:
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="DiscordBotLinuxMonitor",
|
|
9
|
-
version="1.0.
|
|
9
|
+
version="1.0.3",
|
|
10
10
|
description="From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)",
|
|
11
11
|
long_description=readme,
|
|
12
12
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{discordbotlinuxmonitor-1.0.2 → discordbotlinuxmonitor-1.0.3}/discordbotlinuxmonitor/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|