Yunathings for seyfert
npm install yunaforseyfert
yunaforseyfert it's a package that tries to bring the features of my bot, but for seyfert, at a really slow pace.
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.
>
>
>
> ๐ See Parser docs
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.
>
>
>
> ๐ See Watcher docs
And more features coming soon! (not so soon) ๐ง
FAQ
Migrate from <v0.10 to v1.0 (and Seyfert v1 to v2)
The way to set the argsParser has changed in seyfert v2, it has also changed its name
now it should be done as follows:
`diff
- 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.
`diff
- YunaParser({
- enabled: {
- // ...
- }
- })
+ Yuna.parser({
+ syntax: {
+ // ...
+ }
+ })
`
`
Thanks for read and using yunaforseyfert!
By SagiriIkeda with ๐งโค๏ธ
``