Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Bloctans
Browse files Browse the repository at this point in the history
BOT
 — Today at 8:24 PM
because if a bot wants to know what users on the ulist are a bot that is using mbpy then ye
and because why not send me the code/lines in github when your done so i can add it to my custom lib so it properly works with mbpy bots
  • Loading branch information
showierdata9978 committed Feb 24, 2023
1 parent c0b1951 commit 0389c17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions MeowerBot/Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion MeowerBot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

__version__ = "2.3.0"
__version__ = "2.4.5"


# Public library imports
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 0389c17

Please sign in to comment.