From afa068cf52f9fbad4e67b70558d45881700c4283 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Fri, 13 Jan 2023 17:47:23 +0100 Subject: [PATCH] Remove psutil dependency --- bot.py | 4 ++-- requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 0c621c1..32c53cf 100644 --- a/bot.py +++ b/bot.py @@ -7,13 +7,13 @@ from discord import app_commands import typing from discord.ext import commands import discord.utils -import psutil import time from sys import platform +BOOT_TIME = time.time() def seconds_elapsed(): - return time.time() - psutil.boot_time() + return time.time() - BOOT_TIME class MyClient(discord.Client): diff --git a/requirements.txt b/requirements.txt index 1f86944..47a3c96 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ discord.py==2.1.0 -psutil==5.9.4