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.0.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.0.0-py3-none-any.whl (127.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hikari_arc-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8fed75a9d92e9927ab790a7748c4c9a1adfa191a59252e4870b94c4da169498a
MD5 5a299e93224075ad5e1fff6d77f54c1b
BLAKE2b-256 ed5e6c83688949e3746a4ea1dcc35424203b8eb8628b6d1c614fdc16eedab110

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hikari_arc-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e5039c65838452df0cb34bc565b7c7cc01c1bb90ed985be29340bd2cfdb41cc
MD5 777aa9b2ea413eef953ec62f4effcbbf
BLAKE2b-256 d9054bd6acee1655bd201953ed79c7558a933ab88f6e32f9b90eef4f2aa1e41e

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