Skip to main content

The all in one lib to bootstrap your pincer bot

Project description

Nipistaa

Lines of code Repo Size GitHub last commit GitHub commit activity Discord Code style: black gitmoji

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()

file


or even make it with bare python Client!

import nipistaa
from pincer import Client

Bot = nipistaa.hook('ping', guild=1234567890)(Client)
Bot('...').run()

file


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

file

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

nipistaa-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

nipistaa-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for nipistaa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51b951fbb6f607bb01bb1c144e857cf9c33a7593af2cb689abceb752891fdcfe
MD5 6fc7affc1020f0063511e668de6a3960
BLAKE2b-256 522315fce64ba1e8c12b90dd3804206018746b52ddd3495c2040373e69c61b6e

See more details on using hashes here.

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

Hashes for nipistaa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 35468471d85af43dec2d4792f14349a658a42eb588dad1602a0259450a3199f4
MD5 29a7904811d23887898815483516f376
BLAKE2b-256 df15cb220fd72271f36da022f47339db9e00c8561ad959ad0b9da71fd2b904fc

See more details on using hashes here.

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