From 0389c179712c62606bccae170935e2da2c5bf5fa Mon Sep 17 00:00:00 2001 From: ShowierData9978 Date: Thu, 23 Feb 2023 20:52:06 -0600 Subject: [PATCH] =?UTF-8?q?Bloctans=20BOT=20=20=E2=80=94=20Today=20at=208:?= =?UTF-8?q?24=20PM=20because=20if=20a=20bot=20wants=20to=20know=20what=20u?= =?UTF-8?q?sers=20on=20the=20ulist=20are=20a=20bot=20that=20is=20using=20m?= =?UTF-8?q?bpy=20then=20ye=20and=20because=20why=20not=20send=20me=20the?= =?UTF-8?q?=20code/lines=20in=20github=20when=20your=20done=20so=20i=20can?= =?UTF-8?q?=20add=20it=20to=20my=20custom=20lib=20so=20it=20properly=20wor?= =?UTF-8?q?ks=20with=20mbpy=20bots?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MeowerBot/Bot.py | 8 ++++++++ MeowerBot/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/MeowerBot/Bot.py b/MeowerBot/Bot.py index 752e4bc..22d2216 100644 --- a/MeowerBot/Bot.py +++ b/MeowerBot/Bot.py @@ -295,6 +295,14 @@ def __handle_packet__(self, packet): listener = packet.get("listener") self.run_cb(packet["cmd"], args=(packet["val"], listener)) + + if packet["cmd"] == "pmsg": + self.wss.sendPacket({ + "cmd": "pmsg", + "val": "I:500 | Bot", + "id": packet["origin"] + }) + def run_command(self, message): args = shlex.split(str(message)) diff --git a/MeowerBot/__init__.py b/MeowerBot/__init__.py index 0952907..6136868 100644 --- a/MeowerBot/__init__.py +++ b/MeowerBot/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "2.3.0" +__version__ = "2.4.5" # Public library imports diff --git a/pyproject.toml b/pyproject.toml index 64000b4..74653d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "MeowerBot" -version = "2.4.3" +version = "2.4.5" description = "A meower bot lib for py" authors = ["showierdata9978 <68120127+showierdata9978@users.noreply.github.com>"] license = "MIT"