Giter Site home page Giter Site logo

butterfly's People

Contributors

dondish avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

butterfly's Issues

Remove ShadowJar

It just creates issues, and as this library is constantly being worked on there is no need for it.

Add Interactions

Interactions are a conversation between a bot and one or more users, this will allow us to create more elegant menus.

Interactions are made of steps, and steps point to the next step or to end the interaction.

Adding test helper functions

Developers should not need to invest time in setting up their discord environment for their unit tests.
Butterfly should help users by providing environment building functions and helping developers write less code and achieving more.

Move to JDK 11 Only

This is because Nino uses JDK 11, and Kotlin is unstable across multiple JDK versions.

Only catch CommandExceptions

The client currently catches all exceptions and prints errors, let JDA catch all of the non-butterfly exceptions instead.

Command Nesting and Command Groups

Problem

There can be multiple issues when working with nested commands:

  • Permission bypassing
  • Complexity of code
  • Implementation bugs

Solution

One more class: CommandGroup
This class extends the normal Command and it's some kind of CommandHandler.
It accepts subcommands and a default command (no arguments) in its constructor.
In its execute() method, it works exactly like the CommandHandler, executing the correct subcommand according to its argument.

Move to Discord4J

Instead of using JDA and relying on two libraries: JDA and the jda-reactor library we can rely on Discord4J which is both tested and running on Project Reactor.
Also it has better support for Kotlin, moving should not take very long as the code doesn't rely too much on one library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.