Coder Social home page Coder Social logo

s3ns3iw00 / jcommands Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 1.47 MB

A simple Javacord extension to create slash commands with built-in input validation, argument conversion, concatenation and autocompletion.

License: GNU General Public License v3.0

Java 100.00%
command discord java javacord slashcommand

jcommands's Introduction

Hi there ๐Ÿ‘‹

I am currently working as a Fullstack Developer at a financial company. My main task is to maintain the company's financial system that was written in Java/JavaFX (fontend) and Python (backend). Aside of maintaining this system, I also have to migrate some websites to a newer version of PHP. When I say Fullstack I am not only mean frontend and backend, but also server management. The company has linux servers therefore I gained some skills in linux environments.

I love to spend my spare time with coding, as my Github profile shows. I have uploaded some of my work, and most of them are discontinued, but I have one that I currently work on.

๐Ÿ‘จโ€๐Ÿ’ป My tech stack

I believe that language has to depend on the task rather than on comfort zone.

Java

My first language, I started programming in it because of Minecraft servers. I also have some experience in Spring Boot.

Flutter

I love that how it makes mobile development such an easy thing.

Python

Not my faviourite to be honest, but I have to deal with it in my everydays, therefore I have some experience in it as well.

Lua

I started learning it because of GTAV. I wanted to create a server with my friends, and for that it is essential to learn Lua. I know only the basics of it that is neccessary to develop a GTAV server in the FiveM framework.

C#

I used to work on school projects in WPF that is a C# framework. My thesis was a game that was also written in C# WPF.

jcommands's People

Contributors

danielgellert avatar s3ns3iw00 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

katnova mrtuxa

jcommands's Issues

Autocompletes for arguments with the same name for different commands are overridden

I have a slashcommand with two subcommands: subscribe and unsubscribe. Both have an identically named argument.

The first one to load has this code:

        StringArgument<String> targetNameArgument = new StringArgument<>(
                "name", "The name of the target", String.class);
        SearchAutocomplete searchAutocomplete = new SearchAutocomplete(
                SearchAutocomplete.SearchType.CONTAINS, targetStringList
        ).ignoreCase().limit(10).sort(SearchAutocomplete.SortType.ASCENDING).minCharToSearch(2);
        targetNameArgument.addAutocomplete(searchAutocomplete);
        addArgument(targetNameArgument);

The second has this code:

        StringArgument<String> targetNameArgument = new StringArgument<>(
                "name", "The name of the target", String.class);
        Autocomplete autocomplete = new Autocomplete(subscriptions);
        targetNameArgument.addAutocomplete(autocomplete);
        addArgument(targetNameArgument);

When the bot runs, BOTH commands' name arg has the autocomplete from the second command. If I comment out the autocomplete for the second command, the first command's autocomplete works correctly. If I rename the argument to be unique, both work correctly. Is it somehow storing them by name globally and overwriting the original one even though it is on a different command?

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.