DiscordBotLinuxMonitor 1.2.1__tar.gz → 1.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DiscordBotLinuxMonitor
3
- Version: 1.2.1
3
+ Version: 1.2.2
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.1
2
2
  Name: DiscordBotLinuxMonitor
3
- Version: 1.2.1
3
+ Version: 1.2.2
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
@@ -31,7 +31,7 @@ __email__ = "quentin@comte-gaz.com"
31
31
  __license__ = "MIT License"
32
32
  __copyright__ = "Copyright Quentin Comte-Gaz (2024)"
33
33
  __python_version__ = "3.+"
34
- __version__ = "1.2.1 (2024/09/16)"
34
+ __version__ = "1.2.2 (2024/09/19)"
35
35
  __status__ = "Usable for any Linux project"
36
36
 
37
37
  # pyright: reportMissingTypeStubs=false
@@ -558,7 +558,7 @@ class DiscordBotLinuxMonitor:
558
558
 
559
559
  try:
560
560
  is_private: bool = self._is_private_channel(channel=interaction.channel) # type: ignore
561
- out_msg: str = await self.monitoring.check_all_websites(is_private=is_private, display_only_if_critical=False)
561
+ out_msg: str = await self.monitoring.check_all_websites(is_private=is_private, display_only_if_critical=False, restart_if_down=True)
562
562
 
563
563
  # Respond to the user
564
564
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -704,7 +704,7 @@ class DiscordBotLinuxMonitor:
704
704
  try:
705
705
  # Récupérer le statut des ports
706
706
  is_private: bool = self._is_private_channel(channel=interaction.channel) # type: ignore
707
- out_msg: str = await self.monitoring.check_all_ports(restart_if_down=True, is_private=is_private, display_only_if_critical=False)
707
+ out_msg: str = await self.monitoring.check_all_ports(is_private=is_private, display_only_if_critical=False, restart_if_down=True)
708
708
 
709
709
  # Répondre à l'utilisateur
710
710
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -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.2.1",
9
+ version="1.2.2",
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",