1
0

poggers stream ping

This commit is contained in:
Jannik Reimers 2024-10-29 22:36:50 +01:00
parent e23d08fb75
commit 2dd454ae3f
Signed by: jansel
GPG Key ID: 39C62D7D5233CFD0

View File

@ -32,9 +32,9 @@ class EventHooks : Extension() {
twitchClient.eventManager.onEvent(ChannelGoLiveEvent::class.java) {
runBlocking {
launch {
val onlineLog =
val twitchpingschannel =
kord.getGuildOrNull(tserverid)?.getChannelOf<GuildMessageChannel>(tchannelid)
onlineLog?.createMessage("<@&1130981452130037800> ${it.channel.name} is now live at https://twitch.tv/${it.channel.name}")
twitchpingschannel?.createMessage("<@&1130981452130037800> ${it.channel.name} is now live at https://twitch.tv/${it.channel.name} streaming ${it.stream.gameName}: ${it.stream.title}")
}
}
}