A meower bot lib for py
Project description
MeowerBot.py
A bot lib for Meower
How to use
from MeowerBot import Client
c = Client("Username","password",False)
def on_raw_msg(msg:dict, listener:dict):
print(f'msg: {msg["u"]}: {msg["p"]}')
if not msg["u"] == c.username:
if msg["u"] == "Discord":
msg["u"] = msg["p"].split(":")[0]
msg["p"] = msg["p"].split(":")[1].strip()
if msg["p"].startswith(f'@{c.username}'):
c.send_msg(f'Hello, {msg["u"]}!')
def on_close(exiting:bool):
...
def on_error(error):
...
def on_login():
...
def handle_pvar(pvar:dict, origin:str, var, lisserner):
...
def handle_pmsg(msg:dict, origin:str, lissiner):
...
def on_status_change(status, isserner):
c.satuscodee = status
def on_raw_packet(packet:dict, lissener)
...
c.callback(handle_pmsg)
c.callback(handle_pvar)
c.callback(on_login)
c.callback(on_close)
c.callback(on_error)
c.callback(on_raw_msg)
c.callback(on_status_change)
c.callback(on_raw_packet)
c.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MeowerBot-1.4.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for MeowerBot-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6bcd4a5edd71284742f86c1cbc80dbe6f68ff8bd821005c045b6222055b6256 |
|
MD5 | acd869bb99c126640104d68b48af5714 |
|
BLAKE2b-256 | bda242adfb7446ab3ca689382186b5692a4cbf7a42aa362ee81752e9792b8ae1 |