hypergonial / hikari-arc Goto Github PK
View Code? Open in Web Editor NEWA command handler for hikari with a focus on type-safety and correctness.
Home Page: https://arc.hypergonial.com/
License: MIT License
A command handler for hikari with a focus on type-safety and correctness.
Home Page: https://arc.hypergonial.com/
License: MIT License
Currently only command names/descriptions and option names/descriptions are supported by locale providers. Slash option choices however support localization. AutocompleteData would also benefit from having a .loc()
method.
Slash option choices can be localized, it should be supported.
A seperate locale provider yielding choice localizations. It should be given all the choices for a given command & a locale, the command & option's name at the very least, and return localized choices.
Pretty much be able to set default_permissions
for the entire plugin rather than each individual command you add within that plugin.
Pretty much just removes the pain of adding default_permissions
to every command.
ideally would be nice to just be able to set it within the implementation of a plugin like so
plugin = GatewayPlugin(name="admin_cmds", default_permissions=..)
Add the ability to attach a locale provider to the client which can be queried by commands for localizations.
It would provide a nicer interface for i18n.
Ideally a LocaleProvider or something similar would be provided to the client on initialization, and commands that are being added can then query the LocaleProvider to set their locale options. The user should also be able to query localization strings through the provider manually for creating localized responses.
Add meta decorators to all commands, sub-commands, and plugins, and also, be able to attach them to the options, within a command.
This is needed because I will not stop bugging you to make it, and it would be useful for others.
Here is my idea:
Have some sort of basic decorator, like this:
@arc.add_metadata(arc.Metadata(example="beans"))
but then, if people want to make custom metadata, they can subclass arc.Metadata
and add their arguments to it.
I have no idea, how adding them to an option would work, so I will leave that up to you, or we can have a talk about it idk.
Add an attribute to errors.MaxConcurrencyReachedError
that stores which bucket (user/channel/guild/global) was reached
This attribute would allow people to create custom error messages instead of using a generic "maximum concurrency limit reached" message.
To be decided.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.