Skip to main content

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


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)

Uploaded Source

Built Distribution

meowerbot-3.1.0.post1-py3-none-any.whl (16.8 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