com.simbot.component.mirai.messages.cqMusic.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of component-mirai Show documentation
Show all versions of component-mirai Show documentation
a simple-robot component for mirai
@file:Suppress("MemberVisibilityCanBePrivate", "unused")
package com.simbot.component.mirai.messages
import net.mamoe.mirai.message.data.ServiceMessage
/**
* CQ码音乐分享获取Xml格式的卡片分享
*/
@Deprecated("未完成")
interface CqMusicXml {
val serviceMessage: ServiceMessage
}
/**
* CQ码格式的音乐分享
*
* @param type 音乐类型
* @param
*
*/
//abstract class CqMusic(val type: String, val id: Long, val style: String? = null)
/**
* type = qq
*/
@Deprecated("未完成")
internal class MusicQQ(id: String) : CqMusicXml {
companion object Xml {
fun toXml(songId: String): String {
return """
-
Into the Unknown
Idina Menzel/AURORA
""".trimIndent()
}
}
private val qqMusicXml: ServiceMessage
init {
qqMusicXml = ServiceMessage(2, toXml(id))
// qqMusicXml = buildXmlMessage(2) {
// action = "web"
//// brief = "[分享] $title"
//
//
// }
}
override val serviceMessage: ServiceMessage = qqMusicXml
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy