Skip to content

Commit

Permalink
Update linkie-core to 1.0.67
Browse files Browse the repository at this point in the history
Signed-off-by: shedaniel <[email protected]>
  • Loading branch information
shedaniel committed Apr 7, 2021
1 parent 489560e commit 6159bbf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ repositories {
}

dependencies {
compile("me.shedaniel:linkie-core:1.0.66")
// compile("com.discord4j:discord4j-core:3.1.3") {
// force = true
// }
compile("com.github.shadorc.discord4j:discord4j-core:217336e") {
compile("me.shedaniel:linkie-core:1.0.67")
compile("com.discord4j:discord4j-core:3.1.3") {
force = true
}
// compile("com.github.shadorc.discord4j:discord4j-core:217336e") {
// force = true
// }
compile "org.graalvm.js:js-scriptengine:20.2.0"
compile "org.graalvm.js:js:20.2.0"
compile "io.ktor:ktor-server-core:$ktor_version"
Expand Down
8 changes: 5 additions & 3 deletions src/main/kotlin/me/shedaniel/linkie/discord/LinkieBot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ fun main() {
)
)
) {
val slashCommands = SlashCommands()
// val slashCommands = SlashCommands()
// register the commands
registerCommands(CommandHandler)
registerListeners(ChannelListeners)
registerSlashCommands(slashCommands)
slashCommands.register()
// registerSlashCommands(slashCommands)
// slashCommands.register()

event<ReadyEvent> {
gateway.updatePresence(Presence.online(Activity.watching("cool mappings"))).subscribe()
Expand Down Expand Up @@ -233,6 +233,7 @@ fun registerListeners(listeners: ChannelListeners) {
listeners["modmenu"] = ModMenuVersionListener
}

/*
fun registerSlashCommands(commands: SlashCommands) {
commands.guildCommand(432055962233470986L, "linkie", "Base command for Linkie.") {
sub("help", "Display the link to Linkie help.").execute { command, cmd, interaction ->
Expand Down Expand Up @@ -267,3 +268,4 @@ fun registerSlashCommands(commands: SlashCommands) {
}
}
}
*/
2 changes: 2 additions & 0 deletions src/main/kotlin/me/shedaniel/linkie/discord/SlashCommands.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package me.shedaniel.linkie.discord

/*
import com.soywiz.korio.async.runBlockingNoJs
import discord4j.common.util.Snowflake
import discord4j.core.`object`.entity.Message
Expand Down Expand Up @@ -409,3 +410,4 @@ interface SlashCommandOption : SlashCommandOptionAcceptor {
get() = 8
}
}
*/
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ class QueryCompoundCommand(private val namespace: Namespace?) : CommandBase {
searchKey = searchKey,
)
val result: MutableList<ResultHolder<*>> = mutableListOf()
var classes: ClassResultSequence? = null
var methods: MethodResultSequence? = null
var fields: FieldResultSequence? = null
var classes: ClassResultList? = null
var methods: MethodResultList? = null
var fields: FieldResultList? = null
runBlocking {
launch {
try {
Expand Down

0 comments on commit 6159bbf

Please sign in to comment.