yunaforseyfert
v1.0.4
Published
Yunathings for seyfert
Downloads
39
Maintainers
Readme
yunaforseyfert
it's a package that tries to bring the features of my bot, but for seyfert, at a really slow pace. This really is for me and my friends. (my first enemies)
Installation
You can do it using npm
or another packager manager, i prefer use pnpm
pnpm add yunaforseyfert
Features
Yuna.parser
An args parser for text commands, which adds various syntax for more convenient use.
Yuna.resolver
A resolver, which provides some extra functions.
📖 See Resolver docs
MessageWatcher
A simple solution to be able to manage when a message is edited and update the command options.
And more features coming soon! (not so soon) 🐧
FAQ
The way to set the argsParser
has changed in seyfert v2
, it has also changed its name
now it should be done as follows:
- import { YunaParser } from "yunaforseyfert";
-
- // your bot's client
- new Client({
- commands: {
- argsParser: YunaParser() // Here are the settings
- }
- });
+ import { HandleCommand } from "seyfert/lib/commands/handle";
+ import { Yuna } from "yunaforseyfert";
+
+ const client = new Client();
+
+ class YourHandleCommand extends HandleCommand {
+ argsParser = Yuna.parser(); // Here are the settings
+ }
+
+ client.setServices({
+ handleCommand: YourHandleCommand,
+ });
Also the enabled
configuration of the Yuna.parser
has been renamed to syntax
.
- YunaParser({
- enabled: {
- // ...
- }
- })
+ Yuna.parser({
+ syntax: {
+ // ...
+ }
+ })
Thanks for read and using yunaforseyfert!
By SagiriIkeda with 🐧❤️