Skip to main content

A command handler for hikari with a focus on type-safety and correctness.

Project description

The arc logo

PyPI CI Ruff Pyright

A command handler for hikari with a focus on type-safety and correctness.

Installation

To install arc, run the following command:

pip install -U hikari-arc

To check if arc has successfully installed or not, run the following:

python3 -m arc
# On Windows you may need to run:
py -m arc

[!NOTE] hikari-arc requires a Python version of at least 3.10.

If you're just getting started, you may also use the template repository to get started with.

Basic Usage

import hikari
import arc

bot = hikari.GatewayBot("TOKEN") # or hikari.RESTBot
client = arc.GatewayClient(bot) # or arc.RESTClient

@client.include
@arc.slash_command("hi", "Say hi!")
async def ping(
    ctx: arc.GatewayContext,
    user: arc.Option[hikari.User, arc.UserParams("The user to say hi to.")]
) -> None:
    await ctx.respond(f"Hey {user.mention}!")

bot.run()

To get started with arc, see the documentation, or the examples.

Issues and support

For general usage help or questions, see the hikari discord, if you have found a bug or have a feature request, feel free to open an issue!

Contributing

See Contributing.

Acknowledgements

arc is in large part a combination of all the parts I like in other command handlers, with my own spin on it. The following projects have inspired me and aided me greatly in the design of this library:

Links

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

hikari_arc-2.2.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hikari_arc-2.2.0-py3-none-any.whl (127.6 kB view details)

Uploaded Python 3

File details

Details for the file hikari_arc-2.2.0.tar.gz.

File metadata

  • Download URL: hikari_arc-2.2.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for hikari_arc-2.2.0.tar.gz
Algorithm Hash digest
SHA256 378d95411d8740d36196140c76e90bccafd6c6c1bf409dc69afa66afc50fcb43
MD5 e76edc3eddad47226179feff123ca333
BLAKE2b-256 ddc46e67b268c6e92198da214035fcb7ee14a19d5918bc11d937d93743a1b98c

See more details on using hashes here.

File details

Details for the file hikari_arc-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: hikari_arc-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 127.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for hikari_arc-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b23b5335ac543725b67f14b33386d0d1c8030b8f6bc9052db58985f499733a
MD5 76fa9d0b8a4f75b69b41784e1597758f
BLAKE2b-256 e20c661124630b13fb6a6c1ccc230eb04569099d6b701287b2d4e6692df2087e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page