DiscordBotLinuxMonitor 1.7.5__tar.gz → 1.7.7__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.7.5 → discordbotlinuxmonitor-1.7.7}/DiscordBotLinuxMonitor.egg-info/PKG-INFO +1 -1
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/PKG-INFO +1 -1
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/discordbotlinuxmonitor/__main__.py +10 -1
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/discordbotlinuxmonitor/discordbotlinuxmonitor.py +1 -1
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/setup.py +1 -1
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/DiscordBotLinuxMonitor.egg-info/SOURCES.txt +0 -0
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/DiscordBotLinuxMonitor.egg-info/dependency_links.txt +0 -0
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/DiscordBotLinuxMonitor.egg-info/requires.txt +0 -0
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/DiscordBotLinuxMonitor.egg-info/top_level.txt +0 -0
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/LICENSE.md +0 -0
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/README.md +0 -0
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/discordbotlinuxmonitor/__init__.py +0 -0
- {discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: DiscordBotLinuxMonitor
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.7
|
|
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/Discord-Bot-Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: DiscordBotLinuxMonitor
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.7
|
|
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/Discord-Bot-Linux-Monitor-Python-Library
|
|
6
6
|
Author: Quentin Comte-Gaz
|
{discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/discordbotlinuxmonitor/__main__.py
RENAMED
|
@@ -60,6 +60,12 @@ def main() -> None:
|
|
|
60
60
|
async def on_resumed() -> None: # type: ignore
|
|
61
61
|
await discord_bot_linux_monitor.on_resumed()
|
|
62
62
|
|
|
63
|
+
@discord_bot.event
|
|
64
|
+
async def on_socket_response(payload: dict) -> None:
|
|
65
|
+
"""Log raw application-command interactions before command dispatch."""
|
|
66
|
+
if payload.get("t") == "INTERACTION_CREATE":
|
|
67
|
+
logging.info(msg=f"Received INTERACTION_CREATE payload: {payload.get('d')!r}")
|
|
68
|
+
|
|
63
69
|
@discord_bot.event
|
|
64
70
|
async def on_command_error(ctx: commands.Context, error: commands.CommandError) -> None:
|
|
65
71
|
"""Ignore unknown legacy commands typed with the slash prefix."""
|
|
@@ -204,6 +210,10 @@ def main() -> None:
|
|
|
204
210
|
@discord_bot.tree.error
|
|
205
211
|
async def on_app_command_error(interaction: discord.Interaction, error: app_commands.AppCommandError) -> None: # type: ignore
|
|
206
212
|
"""Handle cooldown and other command errors gracefully."""
|
|
213
|
+
logging.error(
|
|
214
|
+
msg=f"Application command error: command={interaction.command!r}, data={interaction.data!r}, error={error!r}",
|
|
215
|
+
exc_info=(type(error), error, error.__traceback__),
|
|
216
|
+
)
|
|
207
217
|
if isinstance(error, app_commands.CommandOnCooldown):
|
|
208
218
|
retry_after = error.retry_after
|
|
209
219
|
await interaction.response.send_message(
|
|
@@ -216,7 +226,6 @@ def main() -> None:
|
|
|
216
226
|
ephemeral=True
|
|
217
227
|
)
|
|
218
228
|
else:
|
|
219
|
-
logging.error(msg=f"Unhandled command error: {error}")
|
|
220
229
|
try:
|
|
221
230
|
await interaction.response.send_message(
|
|
222
231
|
content="❌ An unexpected error occurred. Please try again later.",
|
|
@@ -33,7 +33,7 @@ __email__ = "quentin@comte-gaz.com"
|
|
|
33
33
|
__license__ = "MIT License"
|
|
34
34
|
__copyright__ = "Copyright Quentin Comte-Gaz (2026)"
|
|
35
35
|
__python_version__ = "3.+"
|
|
36
|
-
__version__ = "1.7.
|
|
36
|
+
__version__ = "1.7.7 (2026/09/19)"
|
|
37
37
|
__status__ = "Usable for any Linux project"
|
|
38
38
|
|
|
39
39
|
# 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.7.
|
|
9
|
+
version="1.7.7",
|
|
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
|
|
File without changes
|
{discordbotlinuxmonitor-1.7.5 → discordbotlinuxmonitor-1.7.7}/discordbotlinuxmonitor/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|