feat: support reverse gif using reply

This commit is contained in:
2024-10-17 22:16:27 +08:00
parent 1b7f09732f
commit b3c3e230bf
2 files changed
+19

No files matched your search

@@ -85,6 +85,10 @@ class FancyBot : OneBotListener {
val plainTextContent = getMsg.message
.filter { it.type == ArrayMessageType.text }
.joinToString { it.data.text!! }
if (command.contains("倒放") || command.contains("/df")) {
// 使用回复消息的方式对一个gif倒放
ReverseGIFCommand.reverse(message, getMsg)
}
if (command.contains("/sl") || command.contains("/short")) {
// 使用回复消息的方式快速对一个url消息创建一个短链接
message.reply(plainTextContent.trim().makeShortLink())