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.2.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for MeowerBot-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f716f076a2070de18a578e2d2fcee374d7d311078339aa6589652de47d7309 |
|
MD5 | 885fbb4379f003fdb044dff90b282e41 |
|
BLAKE2b-256 | abb3b6a0ab6444fb1e11f094feb31e2529721e1edecede27bce1e72ae3899a6f |