mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
Simplify
This commit is contained in:
parent
3d21dbd0cb
commit
3ecae98810
@ -70,17 +70,17 @@ suspend fun main() {
|
||||
|
||||
startsWith("mt2months") {
|
||||
val at: At by message
|
||||
at.target.member().mute(1.months)
|
||||
at.member().mute(1.months)
|
||||
}
|
||||
|
||||
startsWith("mute") {
|
||||
val at: At by message
|
||||
at.target.member().mute(30.seconds)
|
||||
at.member().mute(30.seconds)
|
||||
}
|
||||
|
||||
startsWith("unmute") {
|
||||
val at: At by message
|
||||
at.target.member().unmute()
|
||||
at.member().unmute()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user