mirror of
https://github.com/GaMeNu/HFCNotificator.git
synced 2024-11-16 07:14:52 +02:00
v2.2.4
Quickfixes
This commit is contained in:
parent
005678640f
commit
f412c4bd69
12
README.md
12
README.md
@ -45,23 +45,17 @@ List all registered locations
|
||||
|
||||
**Note:** as of 2023-10-23, discord.py seems to not install properly for Python 3.11 and above.
|
||||
The fix we've found is to first install the beta version of package `aiohttp` separately (`aiohttp==3.9.0b0`).
|
||||
```
|
||||
discord.py
|
||||
mysql-connector-python
|
||||
requests
|
||||
python-dotenv
|
||||
```
|
||||
|
||||
You can also use the requirements files (`pip install -r`):
|
||||
Please use the requirements files (`pip install -r`):
|
||||
|
||||
Python 3.10 and below:
|
||||
```
|
||||
requirements.txt
|
||||
(python -m) pip install -r requirements.txt
|
||||
```
|
||||
|
||||
Python 3.11 and above:
|
||||
```
|
||||
requirements-new-python.txt
|
||||
(python -m) pip install -r requirements-new-python.txt
|
||||
```
|
||||
|
||||
#### Other requirements
|
||||
|
@ -4,6 +4,7 @@ import re
|
||||
import sys
|
||||
import time
|
||||
|
||||
import distro
|
||||
import psutil
|
||||
import requests
|
||||
|
||||
@ -540,15 +541,17 @@ class Notificator(commands.Cog):
|
||||
client_uptime = datetime.timedelta(seconds=int(round(curtime - self.start_time)))
|
||||
client_uptime_format = format_timedelta(client_uptime)
|
||||
|
||||
print(curtime)
|
||||
print(psutil.boot_time())
|
||||
print(curtime - psutil.boot_time())
|
||||
|
||||
system_uptime = datetime.timedelta(seconds=int(round(curtime - psutil.boot_time())))
|
||||
system_uptime_format = format_timedelta(system_uptime)
|
||||
|
||||
uname = platform.uname()
|
||||
|
||||
if uname.system != "Linux":
|
||||
system_name = f'{uname.system} {uname.release}'
|
||||
else:
|
||||
# Goddamnit Linux too many distros
|
||||
system_name = f'{distro.name(pretty=True)}'
|
||||
|
||||
b_to_mb = 1000000
|
||||
|
||||
e = discord.Embed(color=discord.Color.orange())
|
||||
@ -565,7 +568,7 @@ Guilds Joined :: {len(self.bot.guilds)}
|
||||
Registered channels :: {len(self.db.get_all_channels())}
|
||||
|
||||
==== System Information ====
|
||||
OS :: {uname.system} {uname.release}
|
||||
OS :: {system_name}
|
||||
Uptime :: {system_uptime_format}
|
||||
|
||||
Processor :: {cpuinfo.get_cpu_info()["brand_raw"]}
|
||||
|
Loading…
Reference in New Issue
Block a user