1
0

announcement message hotfix

This commit is contained in:
Jannik Reimers 2024-11-06 20:44:05 +01:00
parent b6d795c114
commit d0c7f7ff07
Signed by: jansel
GPG Key ID: 39C62D7D5233CFD0

View File

@ -43,7 +43,7 @@ suspend fun main() {
val channel = bot.kordRef.getChannelOf<GuildMessageChannel>(streamer!!.servers.first().channelId) val channel = bot.kordRef.getChannelOf<GuildMessageChannel>(streamer!!.servers.first().channelId)
val role = streamer.servers.first().roleId val role = streamer.servers.first().roleId
if (role != null) { if (role != null) {
channel?.createMessage("<@&$role> ${it.channel.name} went live streaming ${it.stream.gameName}: ${it.stream.title}") channel?.createMessage("<@&$role> https://twitch.tv/${it.channel.name} went live streaming ${it.stream.gameName}: ${it.stream.title}")
} else { } else {
channel?.createMessage("${it.channel.name} went live: ${it.stream.title}") channel?.createMessage("${it.channel.name} went live: ${it.stream.title}")
} }