N
N
Nyxoy2021-12-01 13:08:34
Python
Nyxoy, 2021-12-01 13:08:34

How to display information about a discord bot?

It is necessary that the bot displays this
information on command



Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cyroil, 2021-12-06
@cyroil

#--------------- cpu и memory, ядра цпу трудно будет узнать (конечно если у тебя не root права(т.е. админские))
import psutil
# gives a single float value
print(psutil.cpu_percent())
print(psutil.virtual_memory())
#_----------------- время,где main основной код
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question