Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Thank you null
Browse files Browse the repository at this point in the history
  • Loading branch information
MarbleGateKeeper committed May 17, 2022
1 parent 5ab3e31 commit 15758fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Evil Gemira
A Mirai Console Plugin
### 本插件提供的功能
* 防止撤回
* 防止撤回,自动将撤回内容重新发布到群中并@发布人(请注意,被管理员撤回的内容将会被本插件忽略)
* ~~将撤回内容保存到本地 (硬编码中默认关闭,需要开启此功能请修改代码并编译自己的版本)~~
* 保存到本地的功能先摆了
* ~~这个插件的测试也先摆了,因为本地测试号又登不上了,继续搞下去我会emo到明年春节去~~
* ~~这个插件的测试也先摆了,emo中谁爱怎么弄怎么弄吧~~
### 为什么要有这个插件?
```
null好像在群里发了双丁然后撤回了。

This comment has been minimized.

Copy link
@nullqwertyuiop

nullqwertyuiop May 17, 2022

Collaborator

我哭死,白门攻急我

This comment has been minimized.

Copy link
@MarbleGateKeeper

MarbleGateKeeper May 17, 2022

Author Owner

可你明明很开心

This comment has been minimized.

Copy link
@nullqwertyuiop

nullqwertyuiop via email May 17, 2022

Collaborator
Expand Down
7 changes: 7 additions & 0 deletions src/main/kotlin/love/marblegate/evilgemira/EvilService.kt
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
package love.marblegate.evilgemira

import net.mamoe.mirai.message.data.MessageChain

object EvilService{
fun MessageChain.saveTo(path: String){
// TODO
}
}
4 changes: 3 additions & 1 deletion src/main/kotlin/love/marblegate/evilgemira/GemiraService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package love.marblegate.evilgemira
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import love.marblegate.evilgemira.EvilService.saveTo
import net.mamoe.mirai.event.events.GroupMessageEvent
import net.mamoe.mirai.event.events.MessageRecallEvent
import net.mamoe.mirai.message.data.*
Expand Down Expand Up @@ -69,7 +70,8 @@ object GemiraService {
return true
}

private fun save(event: GroupMessageEvent) {
private fun save(message: MessageChain) {
message.saveTo("TODO")
// TODO use EvilService shit to save content to local
}
}

0 comments on commit 15758fa

Please sign in to comment.