From ee8e2913216864f1f127b6a206177adc67b3aa6d Mon Sep 17 00:00:00 2001 From: Pmaru-top Date: Sun, 29 Jan 2023 00:48:48 +0800 Subject: [PATCH] commit --- .gitignore | 131 +++++++++++++ README.md | 62 ++++++ build.gradle | 14 ++ gradle.properties | 1 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 59536 bytes gradle/wrapper/gradle-wrapper.properties | 5 + gradlew | 185 ++++++++++++++++++ gradlew.bat | 89 +++++++++ settings.gradle | 1 + .../top/cutestar/antiRecall/AntiRecall.kt | 44 +++++ .../top/cutestar/antiRecall/Commands.kt | 55 ++++++ .../kotlin/top/cutestar/antiRecall/Config.kt | 24 +++ .../top/cutestar/antiRecall/EventHost.kt | 74 +++++++ .../kotlin/top/cutestar/antiRecall/Util.kt | 121 ++++++++++++ .../cutestar/antiRecall/data/MessageSource.kt | 3 + ...t.mamoe.mirai.console.plugin.jvm.JvmPlugin | 1 + 16 files changed, 810 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 settings.gradle create mode 100644 src/main/kotlin/top/cutestar/antiRecall/AntiRecall.kt create mode 100644 src/main/kotlin/top/cutestar/antiRecall/Commands.kt create mode 100644 src/main/kotlin/top/cutestar/antiRecall/Config.kt create mode 100644 src/main/kotlin/top/cutestar/antiRecall/EventHost.kt create mode 100644 src/main/kotlin/top/cutestar/antiRecall/Util.kt create mode 100644 src/main/kotlin/top/cutestar/antiRecall/data/MessageSource.kt create mode 100644 src/main/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6347174 --- /dev/null +++ b/.gitignore @@ -0,0 +1,131 @@ +# User-specific stuff +.idea/ + +*.iml +*.ipr +*.iws + +# IntelliJ +out/ +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +.gradle +build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Cache of project +.gradletasknamecache + +**/build/ + +# Common working directory +run/ + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + + +# Local Test Launch point +src/test/kotlin/RunTerminal.kt + +# Mirai console files with direct bootstrap +/config +/data +/plugins +/bots + +# Local Test Launch Point working directory +/debug-sandbox diff --git a/README.md b/README.md new file mode 100644 index 0000000..67d65c2 --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ +# AntiRecall 反撤回插件 + +这是一个基于[`mirai`](https://github.com/mamoe/mirai) 机器人框架的插件 + +不想折腾模块? 在mirai上安装本插件进行简单配置即可实现 + +![image](images/show.png) + +## 下载 +[![image](https://img.shields.io/github/downloads/MX233/AntiRecall/total)](https://github.com/MX233/AntiRecall/releases) + +# 一定要先看完README + +## 本插件功能 +- 获取被撤回的消息 +- 闪照破解 + +## 前置插件 +- [chat-command](https://github.com/project-mirai/chat-command) + +## 指令 +**前缀一般是 `/`** + +| 指令 | 作用 | 示例 | +|:-------------------------|:-------------|:-------------------------------------------| +| `ar` `en` `` | `设置开启或关闭` | ar en true | +| `ar` `ca` `