A meower bot lib for py
Project description
MeowerBot.py
A bot library made for Meower
License
see LICENSE
docs
Currently, there is no documentation as a full rewrite just happened.
Quick Example
from MeowerBot import Bot
from MeowerBot.context import Context, Post
import asyncio
import logging
from os import environ as env
from MeowerBot.ext.help import Help as HelpExt
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("websockets.client").setLevel(level=logging.INFO)
bot = Bot()
@bot.event
async def login(t):
print("Logged in!")
@bot.command(name="ping")
async def ping(ctx: Context):
await ctx.send_msg("Pong!\n My latency is: " + str(bot.latency))
bot.register_cog(HelpExt(bot))
bot.run(env["uname"], env["pswd"])
That example may be outdated. if it is outdated, the correct version is in here
There are extra examples here
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-3.0.3.tar.gz
(12.3 kB
view hashes)
Built Distribution
meowerbot-3.0.3-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for meowerbot-3.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 874f64bcd402f5d277a85acaf60c94637d23827d14530c8562992cf20abf1d74 |
|
MD5 | 6d1146ef8eefb7c4c379f9accb3e1039 |
|
BLAKE2b-256 | 5872708ea47b9ac35e0dc095a25b5581aaa03e22d51804637fa2437f860887e9 |