Commit graph

642 commits

Author SHA1 Message Date
Julian Staudt
0da348a187 Not so spooky anymore :C 2020-11-20 03:48:10 +00:00
allenclan23
3c75361e38 Bump Velocity to latest 2020-10-28 16:43:50 +01:00
dependabot[bot]
0db6a68750 ⬆️ Bump JDA from 4.2.0_211 to 4.2.0_212
Bumps JDA from 4.2.0_211 to 4.2.0_212.

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-28 09:45:42 +01:00
dependabot[bot]
e55a9ca116 ⬆️ Bump slf4j-simple from 1.7.21 to 1.7.30
Bumps [slf4j-simple](https://github.com/qos-ch/slf4j) from 1.7.21 to 1.7.30.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.21...v_1.7.30)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-27 13:40:33 +01:00
dependabot[bot]
24bfc1d961 ⬆️ Bump JDA from 4.2.0_209 to 4.2.0_211
Bumps JDA from 4.2.0_209 to 4.2.0_211.

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-26 08:53:12 +01:00
Alexander Söderberg
fdeaa7d8cc 📚 Update CHANGELOG to prepare for the release 2020-10-24 19:52:44 +02:00
Alexander Söderberg
2843b368d5 📚 Change version to 1.1.0 from 1.1.0-SNAPSHOT 2020-10-24 19:52:44 +02:00
Alexander Söderberg
a68bc0bea7 Allow for recursive annotations (#97)
Co-authored-by: Mariell <proximyst@proximyst.com>
2020-10-24 19:52:44 +02:00
jmp
e26d01388d Improve the exception message for LocationArgument 2020-10-24 19:52:44 +02:00
Alexander Söderberg
cfac2639ad Add errorprone and fix warnings/errors
The compiler will also treat all warnings as errors from now on.
2020-10-24 19:52:44 +02:00
jmp
6ffee9d04f Make changes from PR comments 2020-10-24 19:52:44 +02:00
Alexander Söderberg
9b80bb9eb7 🐛 Add missing build.gradle file 2020-10-24 19:52:44 +02:00
Alexander Söderberg
641a5f2683 📚 Add https://github.com/Incendo/bot to project list 2020-10-24 19:52:44 +02:00
Alexander Söderberg
63068ad75d 🐛 Pop input on correctly parsed PircBotX user 2020-10-24 19:52:44 +02:00
Alexander Söderberg
7c340f7a60 🚀 Bump PircBotX version 2020-10-24 19:52:44 +02:00
Alexander Söderberg
f0feaf4e13 Register a parser supplier for UserArgument 2020-10-24 19:52:44 +02:00
Alexander Söderberg
979d1079c6 Add a PircBotX implementation of cloud 2020-10-24 19:52:44 +02:00
jmp
c74ac64e5f 🐛 Fix optionals not being brig executors 2020-10-24 19:52:44 +02:00
jmp
c9d4f39612 Allow for class annotations as a default for when an annotation is not present on a method 2020-10-24 19:52:44 +02:00
Alexander Söderberg
d37f2236e7 📚 Add recent changes to CHANGELOG 2020-10-24 19:52:44 +02:00
Alexander Söderberg
3c7bd63f07 Add named suggestion providers
This allows for pre-registration of command suggestion providers, that can then be used in annotated command methods.
2020-10-24 19:52:44 +02:00
Alexander Söderberg
37e0b4e91b 📚 Change false to true in method javadoc 2020-10-24 19:52:44 +02:00
Alexander Söderberg
65b7cb6c69 🔥 Fix super important issues 2020-10-24 19:52:44 +02:00
Alexander Söderberg
9344adea59 📚 Add recent changes to CHANGELOG 2020-10-24 19:52:44 +02:00
Alexander Söderberg
bd19e1be56 Make the flag parser smarter
It will now allow multiple presence flag aliases to be joined into a single flag, such that `-a -b -c <=> -abc`.

This fixes #75
2020-10-24 19:52:44 +02:00
Alexander Söderberg
c9b61e4275 💀 Stop building the javacord example
The simplix repo is too unreliable.
2020-10-24 19:52:44 +02:00
Alexander Söderberg
da0d586e52 📚 Add missing @Since annotations 2020-10-24 19:52:44 +02:00
Alexander Söderberg
60dd74915a 🐛 Update scripts/dependencies.gradle
lol, O and 0 look the same D:
2020-10-24 19:52:44 +02:00
Alexander Söderberg
d6ccc1d59b 🧹 Clean up the gradle build scripts a little
Changes:
- Move all dependency versions to a shared file
- Order the projects in settings.gradle
2020-10-24 19:52:44 +02:00
broccolai
f3abbf5958 Fix code style issues in jda 2020-10-24 19:52:44 +02:00
broccolai
c5873e46e6 Deprecate JDACommandManager and add JDA4CommandManager 2020-10-24 19:52:44 +02:00
broccolai
530ecc4f73 Bump JDA version 2020-10-24 19:52:44 +02:00
broccolai
36afe207d7 Change JDACommandListeners sendMessage back to queue instead of complete 2020-10-24 19:52:44 +02:00
broccolai
0715c4ab9d Add JDA example
Basic example also showing a basic implementation of the permission mapper
2020-10-24 19:52:44 +02:00
broccolai
c0bc1e7523 Fix custom senders on Cloud-JDA
Switches the command sender class to JDACommandSender and allows for it to be constructed with a nullable MessageReceivedEvent allowing for poeple to have backwards mappers
2020-10-24 19:52:44 +02:00
broccolai
433cd88c90 Change UserArgument
Changed list usages to set and made the default builders use the mention parser
2020-10-24 19:52:44 +02:00
jmp
37d4bdfe80 📚 Add missing @since annotations 2020-10-24 19:52:44 +02:00
jmp
7cb1661f42 Add BungeeCommandPreprocessor 2020-10-24 19:52:44 +02:00
allenclan23
f73b713658 Expand the bungee module 2020-10-24 19:52:44 +02:00
jmp
d86973f227 Add VelocityCommandPreprocessor 2020-10-24 19:52:44 +02:00
Alexander Söderberg
ad3ca86f42 Add a lockable command manager
This will be used for Sponge & Fabric, that both require command registration to happen (at latest) in specific events. This way we lock writing after that event has occurred.

As a side effect, we're able to collect & merge all commands before registering them to the platform, which means we don't have to hackily force-inject duplicate commands.
2020-10-24 19:52:44 +02:00
broccolai
5cdef1b401 Update gradle and gradle plugin versions 2020-10-24 19:52:44 +02:00
jmp
5ce9677cb4 Register new Velocity arguments with the parser registry 2020-10-24 19:52:44 +02:00
jmp
15c6c8a2a1 🐛 Suggest the right amount of arguments with >1 requestedArgumentCount 2020-10-24 19:52:44 +02:00
Alexander Söderberg
79aefb05b5 Add LocationArgument to cloud-bukkit (#63)
*  Add LocationArgument to cloud-bukkit

* 🎨 Use the Bukkit CommandSender from the command context in LocationArgument

* 🐛 Fixed quoted parsing in StringArgument

* 📚 Fix code style

Co-authored-by: jmp <jasonpenilla2@me.com>
2020-10-24 19:52:44 +02:00
Alexander Söderberg
1249b74e83 📚 Add since annotations to new classes 2020-10-24 19:52:44 +02:00
allenclan23
8d69767c15 Added ServerArgument to Velocity 2020-10-24 19:52:44 +02:00
jmp
c7c286eb7a Update TextColorArgument with captions 2020-10-24 19:52:44 +02:00
jmp
fba29041e6 🎨 Add caption for string "No input was provided" 2020-10-24 19:52:44 +02:00
jmp
c67cc35cf6 🎨 Add captions for Bukkit entity selector arguments 2020-10-24 19:52:44 +02:00