Skip to content

Commit

Permalink
v0.8.1 - Update dependancies and round ping
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Jun 27, 2023
1 parent bf713d4 commit 7387d98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "StatusBot"
version = "0.8.0"
version = "0.8.1"
authors = [
{ name="CoolCat467" },
]
Expand All @@ -19,15 +19,15 @@ 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",
]

[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",
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/StatusBot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0
0.8.1

0 comments on commit 7387d98

Please sign in to comment.