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 details)
Built Distribution
File details
Details for the file nipistaa-0.1.0.tar.gz
.
File metadata
- Download URL: nipistaa-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b951fbb6f607bb01bb1c144e857cf9c33a7593af2cb689abceb752891fdcfe |
|
MD5 | 6fc7affc1020f0063511e668de6a3960 |
|
BLAKE2b-256 | 522315fce64ba1e8c12b90dd3804206018746b52ddd3495c2040373e69c61b6e |
File details
Details for the file nipistaa-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: nipistaa-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35468471d85af43dec2d4792f14349a658a42eb588dad1602a0259450a3199f4 |
|
MD5 | 29a7904811d23887898815483516f376 |
|
BLAKE2b-256 | df15cb220fd72271f36da022f47339db9e00c8561ad959ad0b9da71fd2b904fc |