A meower bot lib for py
Project description
MeowerBot.py
A bot library made for Meower
License
see LICENSE
docs
The docs are located on my domain made with sphinx. They are located here
Quick Example
from MeowerBot import Bot
from MeowerBot.context import Context
import logging
from dotenv import load_dotenv # type: ignore
load_dotenv() # type: ignore
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.1.0.post1.tar.gz
(12.1 kB
view hashes)
Built Distribution
Close
Hashes for meowerbot-3.1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 856bea76c580f5254368b821b238cba3782523429c21640c85718fa45996e889 |
|
MD5 | f8a3cf796cf04e61cfd5b7c2d6710005 |
|
BLAKE2b-256 | bbf0f8dd9ffb8a6120ec6bb2d3844ccfff69f693b66a25bd5aef7c9ecccfa4c3 |