Skip to content

appujet/yunaforseyfert

 
 

Repository files navigation

yunaforseyfert

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.

📖 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:

- 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 🐧❤️

About

Yuna things for seyfert

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.8%
  • JavaScript 0.2%