A signature parser for hikari's command handler tanjun.

Overview

tanchi

A signature parser for hikari's command handler tanjun.

Finally be able to define your commands without those bloody decorator chains!

Example

@component.with_slash_command
@tanchi.as_slash_command(default_to_ephemeral=True)
async def command(
    ctx: tanjun.abc.SlashContext,
    integer: int = 0,
    flag: bool = False,
    channel: typing.Optional[hikari.GuildTextChannel] = None,
):
    """Small tanchi command
    
    Parameters
    ----------
    integer : int
        Int value.
    flag : bool
        Whether this flag should be enabled
    channel : hikari.GuildTextChannel
        channel to target.
    """
You might also like...
NEW FACEBOOK CLONER WITH NEW PASSWORD, TERMUX FB CLONE, FB CLONING COMMAND. M
NEW FACEBOOK CLONER WITH NEW PASSWORD, TERMUX FB CLONE, FB CLONING COMMAND. M

NEW FACEBOOK CLONER WITH NEW PASSWORD, TERMUX FB CLONE, FB CLONING COMMAND. M

Log4j command generator: Generate commands for CVE-2021-44228
Log4j command generator: Generate commands for CVE-2021-44228

Log4j command generator Generate commands for CVE-2021-44228. Description The vulnerability exists due to the Log4j processor's handling of log messag

🔐 A simple command-line password manager.
🔐 A simple command-line password manager.

PassVault What Is It? It is a command-line password manager, for educational purposes, that stores localy, in AES encryption, your sensitives datas in

A simple discord slash command handler for for discord.py.
A simple discord slash command handler for for discord.py.

A simple discord slash command handler for discord.py About ⦿ Installation ⦿ Disclaimer ⦿ Examples ⦿ Documentation ⦿ Discussions Note that master bran

A Hikari command handler for people who love ducks.

A Hikari command handler for people who love ducks.

A Hikari command handler for people who love ducks.

duckari A Hikari command handler made with love by ducks. Currently Duckari is work in progress. Documentation is WIP. The wiki is no longer used as d

Deriving RSA public keys from message-signature pairs

The repository contains: Experimental code to calculate RSA public keys based on two known message-signature pairs

Signature remover is a NLP based solution which removes email signatures from the rest of the text.

Signature Remover Signature remover is a NLP based solution which removes email signatures from the rest of the text. It helps to enchance data conten

VerSign: Easy Signature Verification in Python

VerSign: Easy Signature Verification in Python versign is a small Python package which can be used to perform verification of offline signatures. It a

Retrieve ECDSA signature R,S,Z values from blockchain rawtx or txid.

rsz Retrieve ECDSA signature R,S,Z values from blockchain rawtx or txid. Info The script parse the data of rawtx to fetch all the inputs in the transa

Python library for generating a Mastercard API compliant OAuth signature.
Python library for generating a Mastercard API compliant OAuth signature.

oauth1-signer-python Table of Contents Overview Compatibility References Usage Prerequisites Adding the Library to Your Project Importing the Code Loa

DNSSEQ: PowerDNS with FALCON Signature Scheme

PowerDNS-based proof-of-concept implementation of DNSSEC using the post-quantum FALCON signature scheme.

Python bindings to the dutch NLP tool Frog (pos tagger, lemmatiser, NER tagger, morphological analysis, shallow parser, dependency parser)

Frog for Python This is a Python binding to the Natural Language Processing suite Frog. Frog is intended for Dutch and performs part-of-speech tagging

Py-Parser est un parser de code python en python encore en plien dévlopement.

PY - PARSER Py-Parser est un parser de code python en python encore en plien dévlopement. Une fois achevé, il servira a de nombreux projets comme glad

Lua-parser-lark - An out-of-box Lua parser written in Lark

An out-of-box Lua parser written in Lark Such parser handles a relaxed version o

Lol qq parser - A League of Legends parser for QQ data

lol_qq_parser A League of Legends parser for QQ data Sources This package relies

Discord bot-CTFD-Thread-Parser - Discord bot CTFD-Thread-Parser
Discord bot-CTFD-Thread-Parser - Discord bot CTFD-Thread-Parser

Discord bot CTFD-Thread-Parser Description: This tools is used to create automat

Penelope Shell Handler
Penelope Shell Handler

penelope Penelope is an advanced shell handler. Its main aim is to replace netcat as shell catcher during exploiting RCE vulnerabilities. It works on

A meme error handler for python
A meme error handler for python

Pwython OwO what's this? Pwython is project aiming to fill in one of the biggest problems with python, which is that it is slow lacks owoified text. N

Comments
  • Autocomplete bug in latest commit version

    Autocomplete bug in latest commit version

    Apparently, there seems to be a bug with the latest commit including the new autocomplete helpers.

    An simple example of code that invoked this issue:

    async def example_autocomplete(
        ctx: tanjun.abc.AutocompleteContext,
    ) -> None:
        await ctx.set_choices({"Choice": "Value"})
    
    @component.with_command
    @tanchi.as_slash_command()
    async def autocomplete_bug(
        ctx: tanjun.abc.SlashContext,
        param: tanchi.Autocompleted[example_autocomplete],
    ) -> None:
    ...
    
    E 2022-05-10 19:10:12,444 hikari.event_manager: an exception occurred handling an event (InteractionCreateEvent)
    Traceback (most recent call last):
      File "C:\Users\_\Documents\_\_\staging\_-hikari\venv\lib\site-packages\tanjun\clients.py", line 2641, in on_interaction_create_event
        return await self.on_gateway_autocomplete_create(event.interaction)
      File "C:\Users\_\Documents\_\_\staging\_-hikari\venv\lib\site-packages\tanjun\clients.py", line 2560, in on_gateway_autocomplete_create
        await coro
      File "C:\Users\_\Documents\_\_\staging\_-hikari\venv\lib\site-packages\tanjun\commands\slash.py", line 2432, in execute_autocomplete
        await ctx.call_with_async_di(callback, ctx, ctx.focused.value)
      File "C:\Users\_\Documents\_\_\staging\_-hikari\venv\lib\site-packages\alluka\_client.py", line 317, in call_with_async_di       
        return await self._injection_client.call_with_ctx_async(self, callback, *args, **kwargs)
      File "C:\Users\_\Documents\_\_\staging\_-hikari\venv\lib\site-packages\alluka\_client.py", line 236, in call_with_ctx_async      
        return typing.cast(_T, await result)
      File "C:\Users\_\Documents\_\_\staging\_-hikari\venv\lib\site-packages\tanchi\autocompletion.py", line 26, in wrapper
        await context.set_choices(result)  # type: ignore # choices have to have the same type
      File "C:\Users\_\Documents\_\_\staging\_-hikari\venv\lib\site-packages\tanjun\context\autocomplete.py", line 218, in set_choices 
        choices = dict(choices, **kwargs)
    TypeError: 'coroutine' object is not iterable
    

    I have also checked and made sure that d25f99689431f79018aae2e0c8443a7856e844af was the sole commit that caused this problem as older versions work fine.

    opened by GoogleGenius 4
Owner
sadru
A python programmer who makes wrappers and downloaders for weeb shit. Creator of genshinstats; maintainer of disnake.
sadru
Aiminsun 165 Dec 21, 2022
Cobalt Strike Beacon configuration extractor and parser.

Cobalt Strike Configuration Extractor and Parser Overview Pure Python library and set of scripts to extract and parse configurations (configs) from Co

Stroz Friedberg 102 Dec 18, 2022
Better-rtti-parser - IDA script to parse RTTI information in executable

RTTI parser Parses RTTI information from executable. Example HexRays decompiler view Before: After: Functions window Before: After: Structs window Ins

null 101 Jan 4, 2023
Used to build an XSS platform on the command line.

pyXSSPlatform Used to build an XSS platform on the command line. Usage: 1.generate the cert file You can use openssl like this: openssl req -new -x509

null 70 Jun 21, 2022
Übersicht remote command execution 0day exploit

Übersicht RCE 0day Unauthenticated remote command execution 0day exploit for Übersicht. Description Übersicht is a desktop widget application for m

BoofGang 10 Dec 21, 2021
PasswordManager is a command-line program that helps you manage your secret files like passwords

PasswordManager is a command-line program that helps you manage your secret files like passwords. It's very minimalistic and easy to use.

Michael 3 Dec 30, 2021
Binary check tool to identify command injection and format string vulnerabilities in blackbox binaries

Binary check tool to identify command injection and format string vulnerabilities in blackbox binaries. Using xrefs to commonly injected and format string'd files, it will scan binaries faster than Firmware Slap.

Christopher Roberts 3 Nov 16, 2021
Python exploit for vsftpd 2.3.4 - Backdoor Command Execution

CVE-2011-2523 - vsftpd 2.3.4 Exploit Discription vsftpd, which stands for Very Secure FTP Daemon,is an FTP server for Unix-like systems, including Lin

Padsala Tushal 5 Nov 8, 2022
On the 11/11/21 the apache 2.4.49-2.4.50 remote command execution POC has been published online and this is a loader so that you can mass exploit servers using this.

ApacheRCE ApacheRCE is a small little python script that will allow you to input the apache version 2.4.49-2.4.50 and then input a list of ip addresse

null 3 Dec 4, 2022
The disassembler parses evm bytecode from the command line or from a file.

EVM Bytecode Disassembler The disassembler parses evm bytecode from the command line or from a file. It does not matter whether the bytecode is prefix

alpharush 22 Dec 27, 2022