Easy way to register commands
Is there an annotation or other way to directly define and associate a command with a function?
For example, taken from the wiki:
Could be something like:
16 Replies
What you want is a framework
I'm only aware of two active frameworks built on top of Kord right now, so I've compared them on this page
disclaimer, I develop Kord Extensions, so like, I'm biased
but I've had Jake look over the table for accuracy
Ooo thank you, I'll take a look
yw
neither of them are annotation-based afaik
As a side note, what's the "Conversations API"?
The idea behind a conversational API is that it'd provide an abstraction over a set of steps, basically
so you'd define a flow for the user to go through
for example, idk, a series of questions
That sounds nice
there's an issue open for it on kordex, but I believe discordkt actually has something for this
Is there a "hybrid" command that encapsulates both regular prefixed commands and slash commands? Or should I just not bother with prefixed ones?
Sorry for all the questions, I'm rewriting my bots from Python to Kotlin
KordEx doesn't have something for that - there was a third-party library for it, but it hasn't been kept up to date
I'm not sure about DKT
you can use the same arguments type for both command types on KordEx, and you can extract the command actions into functions, but I don't think there's a base type with all the functions you'd need
I was thinking about that, but was hoping there was something already. Thanks, I'll go through the docs for both
👍
docs are still WIP but you can see that by the emoji in the sidebar
I'm going with Kord Extensions, the docs look way better
alright, thanks for your support haha
if you need help with KordEx I'd recommend checking out the Answer Overflow page, and then asking in the support forum on the KordEx server so the question and answer can be indexed
keeping knowledge locked on discord is awful
Thanks, I was just about to ask for a link