Skip to main content

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


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)

Uploaded Source

Built Distribution

MeowerBot-1.4.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page