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
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.tar.gz
(12.3 kB
view hashes)
Built Distribution
meowerbot-3.1.0-py3-none-any.whl
(17.1 kB
view hashes)
Close
Hashes for meowerbot-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6460d9c78ccf27dd438964180bf14509dc7f39e9ee320aa90540ad1ec529e035 |
|
MD5 | 97fd750d62825ac6ca37a8057ca44fc7 |
|
BLAKE2b-256 | 65e78fe46787de3b716f022c81375627e2bcfe39dfb7cdc7fb577a243cb15baa |