guimc233/lgz-bot

View on GitHub
src/main/kotlin/ltd/guimc/lgzbot/listener/nudge/AntiNudgeSpam.kt

Summary

Maintainability
A
1 hr
Test Coverage

Method onNudge has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    suspend fun onNudge(e: NudgeEvent) {
        val from = e.from as User
        val timestamp = Instant.now().epochSecond

        if (e.target != e.bot) return    // 只处理对机器人的戳一戳
Severity: Minor
Found in src/main/kotlin/ltd/guimc/lgzbot/listener/nudge/AntiNudgeSpam.kt - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status