From 7387d98b975784ec832b0871252b5d5bc0ac6e4b Mon Sep 17 00:00:00 2001 From: CoolCat467 <52022020+CoolCat467@users.noreply.github.com> Date: Tue, 27 Jun 2023 13:56:23 -0500 Subject: [PATCH] v0.8.1 - Update dependancies and round ping --- pyproject.toml | 7 ++++--- src/StatusBot/bot.py | 6 +++--- version.txt | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 75ddd45..52b8688 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "StatusBot" -version = "0.8.0" +version = "0.8.1" authors = [ { name="CoolCat467" }, ] @@ -19,7 +19,7 @@ classifiers = [ ] keywords = ["discord", "bot"] dependencies = [ - "discord.py~=2.2.3", + "discord.py~=2.3.0", "python-dotenv~=1.0.0", "httpx[http2]~=0.24.1", "mcstatus~=10.0.3", @@ -27,7 +27,7 @@ dependencies = [ [project.optional-dependencies] dev = [ - "mypy~=1.3.0", # must match .pre-commit-config.yaml + "mypy~=1.4.1", # must match .pre-commit-config.yaml "pre-commit", "pre-commit-hooks~=4.4.0", # must match .pre-commit-config.yaml "tox~=4.6.0", @@ -65,6 +65,7 @@ no_implicit_optional = true no_implicit_reexport = true show_column_numbers = true show_error_codes = true +show_traceback = true strict = true strict_equality = true warn_redundant_casts = true diff --git a/src/StatusBot/bot.py b/src/StatusBot/bot.py index a7771ae..ce8df57 100644 --- a/src/StatusBot/bot.py +++ b/src/StatusBot/bot.py @@ -10,10 +10,10 @@ __title__ = "StatusBot" __author__ = "CoolCat467" -__version__ = "0.8.0" +__version__ = "0.8.1" __ver_major__ = 0 __ver_minor__ = 8 -__ver_patch__ = 0 +__ver_patch__ = 1 import asyncio import base64 @@ -753,7 +753,7 @@ async def do_actions(self) -> None: log_active_exception(self.machine.bot.logpath) return json_data = decode_mods.process_response(response.raw) - ping = response.latency + ping = round(response.latency, 3) # If success, get players. self.machine.last_json = json_data self.machine.last_delay = ping diff --git a/version.txt b/version.txt index a3df0a6..6f4eebd 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.8.0 +0.8.1