SimpleGroupAuth 简单的进群验证插件

Overview

SimpleGroupAuth

简单的进群验证插件 https://mirai.mamoe.net/topic/475/

该插件仍处于开发状态,请等待后续更新

/ga-switch 群号 模式序号   ---切换验证模式

0. DISABLED,  不处理
1. ENTERNED_CAPTCHA,  要求进群后的验证码
2. ENTERNED_CHALLENGE,  要求进群后回答问题
3. AUTO_ACCEPT,  自动判断进群答案并接受(未实现)
4. AUTO_ACCEPT_DENY  自动判断进群答案并接受或拒绝(未实现)

ENTERNED_CHALLENGE 现已可用,请查看数据目录内的scripts文件夹内的文件完成配置

You might also like...
Comments
  • 问题答错次数达到上限时机器人无法踢出

    问题答错次数达到上限时机器人无法踢出

    已设置管理员 插件版本为最新 核心版本2.7-M2

    2021-08-24 14:20:45 W/stderr: Exception in thread "DefaultDispatcher-worker-4" java.lang.RuntimeException: Exception while trying to handle coroutine exception
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.CoroutineExceptionHandlerKt.handlerException(CoroutineExceptionHandler.kt:38)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:29)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.StandaloneCoroutine.handleJobException(Builders.common.kt:192)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.JobSupport.finalizeFinishingState(JobSupport.kt:229)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:906)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:863)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.JobSupport.makeCompletingOnce$kotlinx_coroutines_core(JobSupport.kt:828)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:100)
    2021-08-24 14:20:45 W/stderr:   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
    2021-08-24 14:20:45 W/stderr:   Suppressed: net.mamoe.mirai.contact.PermissionDeniedException: `kick` operation requires a higher permission, while MEMBER < MEMBER
    2021-08-24 14:20:45 W/stderr:           at net.mamoe.mirai.internal.contact.NormalMemberImplKt.checkBotPermissionHigherThanThis(NormalMemberImpl.kt:234)
    2021-08-24 14:20:45 W/stderr:           at net.mamoe.mirai.internal.contact.NormalMemberImpl.kick(NormalMemberImpl.kt:174)
    2021-08-24 14:20:45 W/stderr:           at win.rainchan.simplegroupauth.EventListener$kickWrongAnswer$2.invokeSuspend(EventListener.kt:94)
    2021-08-24 14:20:45 W/stderr:           at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    2021-08-24 14:20:45 W/stderr:           ... 5 more
    2021-08-24 14:20:45 W/stderr: Caused by: java.lang.IllegalStateException: 未找到异常处理器. 请继承 SimpleListenerHost 中的 handleException 方法, 或在构造 SimpleListenerHost 时提供 CoroutineExceptionHandler
    2021-08-24 14:20:45 W/stderr: ------------
    2021-08-24 14:20:45 W/stderr: Cannot find exception handler from coroutineContext. 
    2021-08-24 14:20:45 W/stderr: Please extend SimpleListenerHost.handleException or provide a CoroutineExceptionHandler to the constructor of SimpleListenerHost
    2021-08-24 14:20:45 W/stderr:   at net.mamoe.mirai.event.SimpleListenerHost.handleException(JvmMethodListeners.kt:192)
    2021-08-24 14:20:45 W/stderr:   at net.mamoe.mirai.event.SimpleListenerHost$special$$inlined$CoroutineExceptionHandler$1.handleException(CoroutineExceptionHandler.kt:111)
    2021-08-24 14:20:45 W/stderr:   at kotlinx.coroutines.CoroutineExceptionHandlerKt.handleCoroutineException(CoroutineExceptionHandler.kt:25)
    2021-08-24 14:20:45 W/stderr:   ... 12 more
    2021-08-24 14:20:45 W/stderr: Caused by: [CIRCULAR REFERENCE: net.mamoe.mirai.contact.PermissionDeniedException: `kick` operation requires a higher permission, while MEMBER < MEMBER]
    
    opened by Cicini 6
Releases(0.1.1)
Owner
RainChan
A student 👀
RainChan