Commit 33905806 authored by Him188's avatar Him188

multi and complex conditions supported for MessageSubscribers

parent 3ddbdbf6
...@@ -138,6 +138,10 @@ suspend fun main() { ...@@ -138,6 +138,10 @@ suspend fun main() {
}.reply() }.reply()
} }
(contains("1") and has<Image>()){
reply("Your message has a string \"1\" and an image contained")
}
has<Image> { has<Image> {
if (this is FriendMessage || (this is GroupMessage && this.permission == MemberPermission.ADMINISTRATOR)) withContext(IO) { if (this is FriendMessage || (this is GroupMessage && this.permission == MemberPermission.ADMINISTRATOR)) withContext(IO) {
val image: Image by message val image: Image by message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment