mirror of
https://github.com/GaMeNu/HFCNotificator.git
synced 2024-11-16 07:14:52 +02:00
v2.2.4
Ready for release
This commit is contained in:
parent
0fdb494b67
commit
ce0b03225e
12
README.md
12
README.md
@ -61,8 +61,10 @@ Python 3.11 and above:
|
||||
#### Other requirements
|
||||
MySQL Server: https://dev.mysql.com/downloads/mysql/
|
||||
|
||||
### .env format:
|
||||
Replace the angled brackets with the matching data
|
||||
|
||||
### Local data:
|
||||
#### .env file
|
||||
Save the following to a file named ".env", and replace the angled brackets with the matching data
|
||||
```env
|
||||
TOKEN = <Discord bot token>
|
||||
AUTHOR_ID = <Your Discord user ID>
|
||||
@ -73,6 +75,12 @@ DB_PASSWORD = <MySQL database password>
|
||||
|
||||
note that the .env file must be in the same directory as main.py
|
||||
|
||||
#### botinfo file
|
||||
in botinfo.json, change the "maintainer" value (default is "GaMeNu (@gamenu)") to your username, and maybe add contact information. This is in order to allow others to contact you about issues with your specific instance, and will be publicly available through /info.
|
||||
|
||||
**Make sure to not write any personal/private information there!**
|
||||
|
||||
|
||||
## Links
|
||||
[GitHub](https://github.com/GaMeNu/HFCNotificator)
|
||||
|
||||
|
@ -2,7 +2,6 @@ import datetime
|
||||
import platform
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
|
||||
import distro
|
||||
import psutil
|
||||
@ -560,21 +559,21 @@ class Notificator(commands.Cog):
|
||||
|
||||
e.add_field(name='', value=f'''```asciidoc
|
||||
==== Instance and Client Information ====
|
||||
Version :: {botinfo.version}
|
||||
Uptime :: {client_uptime_format}
|
||||
Bot Version :: {botinfo.version}
|
||||
Client Uptime :: {client_uptime_format}
|
||||
Instance Maintainer(s) :: {botinfo.maintainer}
|
||||
|
||||
Guilds Joined :: {len(self.bot.guilds)}
|
||||
Registered channels :: {len(self.db.get_all_channels())}
|
||||
|
||||
==== System Information ====
|
||||
OS :: {system_name}
|
||||
Uptime :: {system_uptime_format}
|
||||
OS :: {system_name}
|
||||
System Uptime :: {system_uptime_format}
|
||||
|
||||
Processor :: {cpuinfo.get_cpu_info()["brand_raw"]}
|
||||
Proc.Usage :: {psutil.cpu_percent()}%
|
||||
Processor :: {cpuinfo.get_cpu_info()["brand_raw"]}
|
||||
Proc.Usage :: {psutil.cpu_percent()}%
|
||||
|
||||
RAM Usage :: {(psutil.virtual_memory().used / b_to_mb):.2f} MB / {(psutil.virtual_memory().total / b_to_mb):.2f} MB ({psutil.virtual_memory().percent}%)
|
||||
RAM Usage :: {(psutil.virtual_memory().used / b_to_mb):.2f} MB / {(psutil.virtual_memory().total / b_to_mb):.2f} MB ({psutil.virtual_memory().percent}%)
|
||||
```''', inline=False)
|
||||
await intr.response.send_message(embed=e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user