diff --git a/build.gradle b/build.gradle index 9b1410f..cbf68a6 100644 --- a/build.gradle +++ b/build.gradle @@ -34,7 +34,7 @@ repositories { } dependencies { - compile("me.shedaniel:linkie-core:1.0.60") + compile("me.shedaniel:linkie-core:1.0.62") compile("com.discord4j:discord4j-core:3.1.3") { force = true } diff --git a/src/main/kotlin/me/shedaniel/linkie/discord/LinkieBot.kt b/src/main/kotlin/me/shedaniel/linkie/discord/LinkieBot.kt index be51bc1..f7ac679 100644 --- a/src/main/kotlin/me/shedaniel/linkie/discord/LinkieBot.kt +++ b/src/main/kotlin/me/shedaniel/linkie/discord/LinkieBot.kt @@ -38,6 +38,7 @@ import me.shedaniel.linkie.discord.utils.event import me.shedaniel.linkie.namespaces.LegacyYarnNamespace import me.shedaniel.linkie.namespaces.MCPNamespace import me.shedaniel.linkie.namespaces.MojangNamespace +import me.shedaniel.linkie.namespaces.MojangSrgNamespace import me.shedaniel.linkie.namespaces.PlasmaNamespace import me.shedaniel.linkie.namespaces.YarnNamespace import me.shedaniel.linkie.namespaces.YarrnNamespace @@ -76,7 +77,8 @@ fun main() { YarnNamespace, PlasmaNamespace, MCPNamespace, - MojangNamespace + MojangNamespace, + MojangSrgNamespace, ) ) ) { @@ -127,6 +129,11 @@ fun registerCommands(commands: CommandHandler) { commands.registerCommand(QueryMethodCommand(Namespaces["plasma"]), "plasmam") commands.registerCommand(QueryFieldCommand(Namespaces["plasma"]), "plasmaf") + commands.registerCommand(QueryCompoundCommand(Namespaces["mojang_srg"]), "mms", "mojmaps") + commands.registerCommand(QueryClassCommand(Namespaces["mojang_srg"]), "mmsc", "mojmapsc") + commands.registerCommand(QueryMethodCommand(Namespaces["mojang_srg"]), "mmsm", "mojmapsm") + commands.registerCommand(QueryFieldCommand(Namespaces["mojang_srg"]), "mmsf", "mojmapsm") + commands.registerCommand(QueryTranslateClassCommand(Namespaces["yarn"], Namespaces["mcp"]), "voldefyc", "voldec", "vc") commands.registerCommand(QueryTranslateMethodCommand(Namespaces["yarn"], Namespaces["mcp"]), "voldefym", "voldem", "vm") commands.registerCommand(QueryTranslateFieldCommand(Namespaces["yarn"], Namespaces["mcp"]), "voldefyf", "voldef", "vf")