mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2026-10-26 01:21:17 +09:00
add ping command, chzzk Connector.kt
This commit is contained in:
9 files changed
+148
-15
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package space.mori.chzzk_bot.chzzk
|
||||
|
||||
import io.github.cdimascio.dotenv.dotenv
|
||||
import xyz.r2turntrue.chzzk4j.Chzzk
|
||||
import xyz.r2turntrue.chzzk4j.ChzzkBuilder
|
||||
|
||||
object Connector {
|
||||
private val dotenv = dotenv()
|
||||
val chzzk: Chzzk = ChzzkBuilder()
|
||||
.withAuthorization(dotenv["NID_AUT"], dotenv["NID_SES"])
|
||||
.build()
|
||||
|
||||
fun getChannel(channelId: String) = chzzk.getChannel(channelId)
|
||||
}
|
||||
Reference in new issue
Block a user