-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of /~https://github.com/xdnw/locutus
- Loading branch information
Showing
43 changed files
with
599 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/link/locutus/discord/commands/manager/v2/binding/annotation/Kw.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package link.locutus.discord.commands.manager.v2.binding.annotation; | ||
|
||
public enum Kw { | ||
// "war", "room", "sync", "channel", "update", "warcat", "category" | ||
WAR, | ||
ROOM, | ||
SYNC, | ||
CHANNEL, | ||
UPDATE, | ||
WARCAT, | ||
CATEGORY, | ||
// | ||
ACTIVITY, | ||
SHEET, | ||
SPREADSHEET(SHEET), | ||
LOGIN, | ||
TIMES, | ||
USER, | ||
SESSION, | ||
ACCESS, | ||
HISTORY, | ||
TRACK, | ||
RECORD, | ||
TIMESTAMP, | ||
NATION, | ||
|
||
; | ||
|
||
private final Kw[] aliases; | ||
|
||
Kw(Kw... aliases) { | ||
this.aliases = aliases; | ||
} | ||
} |
12 changes: 9 additions & 3 deletions
12
...nager/v2/binding/annotation/Viewable.java → ...anager/v2/binding/annotation/Similar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
package link.locutus.discord.commands.manager.v2.binding.annotation; | ||
|
||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.PARAMETER, ElementType.METHOD}) | ||
public @interface Viewable { | ||
} | ||
@Target({ElementType.METHOD}) | ||
public @interface Similar { | ||
Class<?>[] value(); | ||
/** | ||
* If true, then this command will be added to other command's similar list | ||
*/ | ||
boolean reciprical() default true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.