diff --git a/MeowerBot/Bot.py b/MeowerBot/Bot.py index 22d2216..27b93fe 100644 --- a/MeowerBot/Bot.py +++ b/MeowerBot/Bot.py @@ -39,6 +39,11 @@ class Bot: "__meowerbot__cloudlink_trust", ] + BOT_NO_PMSG_RESPONSE = [ + "I:500 | Bot", + "I: 500 | Bot" + ] + def _t_ping(self): while True: time.sleep(60) @@ -296,7 +301,7 @@ def __handle_packet__(self, packet): self.run_cb(packet["cmd"], args=(packet["val"], listener)) - if packet["cmd"] == "pmsg": + if (packet["cmd"] == "pmsg") and (packet["val"] not in self.BOT_NO_PMSG_RESPONSE): self.wss.sendPacket({ "cmd": "pmsg", "val": "I:500 | Bot", diff --git a/MeowerBot/__init__.py b/MeowerBot/__init__.py index 6136868..89e185d 100644 --- a/MeowerBot/__init__.py +++ b/MeowerBot/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "2.4.5" +__version__ = "2.4.6" # Public library imports diff --git a/pyproject.toml b/pyproject.toml index 74653d5..75bb8a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "MeowerBot" -version = "2.4.5" +version = "2.4.6" description = "A meower bot lib for py" authors = ["showierdata9978 <68120127+showierdata9978@users.noreply.github.com>"] license = "MIT"