The all in one lib to bootstrap your pincer bot
Project description
Nipistaa
A pincer library that provides templates commands for the Pincer API wrapper.
Usage example
import nipistaa
from nipistaa.templates import ping
from pincer import Client
@nipistaa.hook(ping, guild=1234567890)
class Bot(Client):
@Client.event
async def on_ready(self):
print('Logged in as', self.bot)
if __name__ == '__main__':
Bot('...').run()
or even make it with bare python Client!
import nipistaa
from pincer import Client
Bot = nipistaa.hook('ping', guild=1234567890)(Client)
Bot('...').run()
want to use nipistaa withing a Cog? No problem.
from pincer import command
from pincer.objects import Embed, MessageContext
import nipistaa
from nipistaa.templates import ping
@nipistaa.hook(ping, guild=134567890)
class MyBeautifulCog:
# your own commands
@command
async def say(self, ctx: MessageContext, message: str):
return Embed(description=f"{ctx.author.user.mention} said:\n{message}")
setup = MyBeautifulCog
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
nipistaa-0.1.0.tar.gz
(4.2 kB
view hashes)