Ajout de almtesh.net sur status
This commit is contained in:
1 parent
c6351241c8
commit
a797fd0c1c
2 files changed
+12
No files matched your search
@@ -5,6 +5,7 @@ from discord import app_commands
|
||||
import psutil
|
||||
import time
|
||||
from other.ikavoidping import get_api_ping
|
||||
from other.almteshdotnetping import get_api_ping as get_almtesh_ping
|
||||
dotenv.load_dotenv()
|
||||
TOKEN = dotenv.get_key(".env", "DISCORD_TOKEN")
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import requests
|
||||
import time
|
||||
|
||||
url = "https://almtesh.net/"
|
||||
|
||||
async def get_api_ping():
|
||||
start_time = time.time()
|
||||
requests.get(url)
|
||||
end_time = time.time()
|
||||
ping = (end_time - start_time) * 1000
|
||||
return ping
|
||||
Reference in new issue
Block a user