Skip to content

Commit

Permalink
v0.8.2 - Update mcstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Jul 7, 2023
1 parent 14a4cf2 commit 173687f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 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.1"
version = "0.8.2"
authors = [
{ name="CoolCat467" },
]
Expand All @@ -22,7 +22,7 @@ dependencies = [
"discord.py~=2.3.0",
"python-dotenv~=1.0.0",
"httpx[http2]~=0.24.1",
"mcstatus~=10.0.3",
"mcstatus~=11.0.0",
]

[project.optional-dependencies]
Expand Down
8 changes: 4 additions & 4 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.1"
__version__ = "0.8.2"
__ver_major__ = 0
__ver_minor__ = 8
__ver_patch__ = 1
__ver_patch__ = 2

import asyncio
import base64
Expand Down Expand Up @@ -599,7 +599,7 @@ async def slash_handler(
"An error occured processing the slash command"
)
if hasattr(interaction._client, "on_error"):
await interaction._client.on_error( # type: ignore
await interaction._client.on_error(
"slash_command", message_command.__name__
)
raise
Expand Down Expand Up @@ -773,7 +773,7 @@ async def do_actions(self) -> None:
if "name" in player:
players.add(player["name"])

if len(players) == 0 and online:
if not players and online:
await self.handle_count(online)
self.machine.last_online_count = online
else:
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.1
0.8.2

0 comments on commit 173687f

Please sign in to comment.