DiscordBotLinuxMonitor 1.0.3__tar.gz → 1.1.1__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,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DiscordBotLinuxMonitor
3
- Version: 1.0.3
3
+ Version: 1.1.1
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
- Home-page: https://github.com/QuentinCG/Linux-Monitor-Python-Library
5
+ Home-page: https://github.com/QuentinCG/Discord-Bot-Linux-Monitor-Python-Library
6
6
  Author: Quentin Comte-Gaz
7
7
  Author-email: quentin@comte-gaz.com
8
8
  License: MIT
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DiscordBotLinuxMonitor
3
- Version: 1.0.3
3
+ Version: 1.1.1
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
- Home-page: https://github.com/QuentinCG/Linux-Monitor-Python-Library
5
+ Home-page: https://github.com/QuentinCG/Discord-Bot-Linux-Monitor-Python-Library
6
6
  Author: Quentin Comte-Gaz
7
7
  Author-email: quentin@comte-gaz.com
8
8
  License: MIT
@@ -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.3 (2024/09/14)"
33
+ __version__ = "1.1.1 (2024/09/14)"
34
34
  __status__ = "Usable for any Linux project"
35
35
 
36
36
  # pyright: reportMissingTypeStubs=false
@@ -537,7 +537,7 @@ class DiscordBotLinuxMonitor:
537
537
 
538
538
  try:
539
539
  is_private: bool = self._is_private_channel(channel=interaction.channel) # type: ignore
540
- out_msg: str = self.monitoring.ping_all_websites(is_private=is_private, display_only_if_critical=False)
540
+ out_msg: str = await self.monitoring.ping_all_websites(is_private=is_private, display_only_if_critical=False)
541
541
 
542
542
  # Respond to the user
543
543
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -579,7 +579,7 @@ class DiscordBotLinuxMonitor:
579
579
  await interaction.response.defer()
580
580
 
581
581
  try:
582
- out_msg: str = self.monitoring.reboot_server()
582
+ out_msg: str = await self.monitoring.reboot_server()
583
583
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
584
584
 
585
585
  except Exception as e:
@@ -598,7 +598,7 @@ class DiscordBotLinuxMonitor:
598
598
 
599
599
  try:
600
600
  is_private: bool = self._is_private_channel(channel=interaction.channel) # type: ignore
601
- out_msg: str = self.monitoring.check_all_services_status(is_private=is_private)
601
+ out_msg: str = await self.monitoring.check_all_services_status(is_private=is_private)
602
602
 
603
603
  # Respond to the user
604
604
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -619,7 +619,7 @@ class DiscordBotLinuxMonitor:
619
619
  try:
620
620
  # Restart all services and get the results
621
621
  is_private: bool = self._is_private_channel(channel=interaction.channel) # type: ignore
622
- out_msg: str = self.monitoring.restart_all_services(is_private=is_private)
622
+ out_msg: str = await self.monitoring.restart_all_services(is_private=is_private)
623
623
 
624
624
  # Respond to the user
625
625
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -640,7 +640,7 @@ class DiscordBotLinuxMonitor:
640
640
  try:
641
641
  # Redémarrer le service et récupérer le message de sortie
642
642
  is_private: bool = self._is_private_channel(channel=interaction.channel) # type: ignore
643
- out_msg: str = self.monitoring.restart_service(is_private=is_private, service_name=service_name)
643
+ out_msg: str = await self.monitoring.restart_service(is_private=is_private, service_name=service_name)
644
644
 
645
645
  # Répondre à l'utilisateur
646
646
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -683,7 +683,7 @@ class DiscordBotLinuxMonitor:
683
683
  try:
684
684
  # Récupérer le statut des ports
685
685
  is_private: bool = self._is_private_channel(channel=interaction.channel) # type: ignore
686
- out_msg: str = self.monitoring.check_all_ports(restart_if_down=True, is_private=is_private, display_only_if_critical=False)
686
+ out_msg: str = await self.monitoring.check_all_ports(restart_if_down=True, is_private=is_private, display_only_if_critical=False)
687
687
 
688
688
  # Répondre à l'utilisateur
689
689
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -729,7 +729,7 @@ class DiscordBotLinuxMonitor:
729
729
 
730
730
  try:
731
731
  # Arrêter le processus et récupérer le message de sortie
732
- out_msg: str = self.monitoring.kill_process(pid=pid)
732
+ out_msg: str = await self.monitoring.kill_process(pid=pid)
733
733
 
734
734
  # Répondre à l'utilisateur
735
735
  await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)
@@ -6,11 +6,11 @@ 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.3",
9
+ version="1.1.1",
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",
13
- url='https://github.com/QuentinCG/Linux-Monitor-Python-Library',
13
+ url='https://github.com/QuentinCG/Discord-Bot-Linux-Monitor-Python-Library',
14
14
  packages=['discordbotlinuxmonitor'],
15
15
  author='Quentin Comte-Gaz',
16
16
  author_email='quentin@comte-gaz.com',