Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danbeldev/alice-ktx
π ΠΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ° Π½Π° Kotlin Π΄Π»Ρ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠΊΠΈ Π½Π°Π²ΡΠΊΠΎΠ² ΠΠ»ΠΈΡΡ ΠΈΠ· Π―Π½Π΄Π΅ΠΊΡ.ΠΠΈΠ°Π»ΠΎΠ³ΠΎΠ².
https://github.com/danbeldev/alice-ktx
alice alice-skills bot framework kotlin kotlin-coroutines kotlin-dsl kotlin-library kotlin-serialization ktor-server yandex yandex-alice yandex-dialogs yandex-dialogs-sdk yandex-lyceum
Last synced: 5 days ago
JSON representation
π ΠΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ° Π½Π° Kotlin Π΄Π»Ρ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠΊΠΈ Π½Π°Π²ΡΠΊΠΎΠ² ΠΠ»ΠΈΡΡ ΠΈΠ· Π―Π½Π΄Π΅ΠΊΡ.ΠΠΈΠ°Π»ΠΎΠ³ΠΎΠ².
- Host: GitHub
- URL: https://github.com/danbeldev/alice-ktx
- Owner: danbeldev
- License: mit
- Created: 2024-07-25T11:58:19.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-11-14T16:54:44.000Z (5 days ago)
- Last Synced: 2024-11-14T17:42:04.385Z (5 days ago)
- Topics: alice, alice-skills, bot, framework, kotlin, kotlin-coroutines, kotlin-dsl, kotlin-library, kotlin-serialization, ktor-server, yandex, yandex-alice, yandex-dialogs, yandex-dialogs-sdk, yandex-lyceum
- Language: Kotlin
- Homepage: https://danbeldev.github.io/alice-ktx/
- Size: 1.72 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Alice Skill[![Maven Central](https://badgen.net/badge/Maven%20Central/v0.0.4/blue?icon=github)](https://central.sonatype.com/artifact/io.github.danbeldev/alice-ktx)
[![License](https://img.shields.io/github/license/danbeldev/alice-ktx)](https://github.com/danbeldev/alice-ktx/blob/master/LICENSE)
![Last commit](https://img.shields.io/github/last-commit/danbeldev/alice-ktx)
ΠΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ° Π½Π° Kotlin, ΡΠΏΡΠΎΡΠ°ΡΡΠ°Ρ ΡΠ°Π·ΡΠ°Π±ΠΎΡΠΊΡ
Π½Π°Π²ΡΠΊΠΎΠ² ΠΠ»ΠΈΡΡ
ΠΈΠ·
Π―Π½Π΄Π΅ΠΊΡ.ΠΠΈΠ°Π»ΠΎΠ³ΠΎΠ²
.
## ΠΡΠΎΠ±Π΅Π½Π½ΠΎΡΡΠΈ
- Kotlin DSL
- Server Application ([Ktor](https://ktor.io))
- [Kotlinx Serialization](https://kotlinlang.org/docs/serialization.html)
- ΠΡΠΈΠ½Ρ ΡΠΎΠ½Π½ΠΎΡΡΡ ([Coroutines](https://github.com/Kotlin/kotlinx.coroutines))
- ΠΠ°ΡΠΈΠ½Π° ΡΠΎΡΡΠΎΡΠ½ΠΈΠΉ (Finite State Machine)
- ΠΠΈΠ΄Π»Π²Π°ΡΠΈ (Π΄Π»Ρ Π²Ρ ΠΎΠ΄ΡΡΠΈΡ ΡΠΎΠ±ΡΡΠΈΠΉ ΠΈ Π²ΡΠ·ΠΎΠ²ΠΎΠ² API)## ΠΡΡΡΡΡΠΉ ΡΡΠ°ΡΡ
```kotlin
fun main() {
skill {
webServer = ktorWebServer {
port = 8080
path = "/alice"
}
dispatch {
newSession {
response {
text = "ΠΡΠΈΠ²Π΅Ρ!"
}
}message {
response {
text = message.request.command.toString()
}
}
}
}.run()
}
```## ΠΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ
- [ΠΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ](documentation/)
- [ΠΡΠΈΠΌΠ΅ΡΡ](https://github.com/danbeldev/alice-ktx/tree/master/examples/src/main/kotlin/com/github/examples)## ΠΠΈΡΠ΅Π½Π·ΠΈΡ
Copyright Β© 2024 [DanBel](https://github.com/danbeldev) \
ΠΡΠΎΡ ΠΏΡΠΎΠ΅ΠΊΡ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅Ρ [MIT](https://github.com/danbeldev/alice-ktx/blob/master/LICENSE) Π»ΠΈΡΠ΅Π½Π·ΠΈΡ