generated from PBModular/ModuleTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
26 lines (22 loc) · 700 Bytes
/
main.py
File metadata and controls
26 lines (22 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from base.module import BaseModule, command
from pyrogram.types import Message
from base.mod_ext import ModuleExtension
from typing import Type
# Extensions
from .extensions.cpu import CPUExtension
from .extensions.memory import MemoryExtension
from .extensions.os import OSExtension
from .extensions.sensors import SensorsExtension
from .extensions.network import NetworkExtension
# Python Libs
import subprocess
class ServerMonitorModule(BaseModule):
@property
def module_extensions(self) -> list[Type[ModuleExtension]]:
return [
CPUExtension,
MemoryExtension,
OSExtension,
SensorsExtension,
NetworkExtension
]