Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WinG4merBR committed Jan 8, 2025
1 parent 62fd9fd commit ff602b1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion foxy/src/main/kotlin/net/cakeyfox/foxy/FoxyInstance.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class FoxyInstance(
InteractionEventListener(this)
)
.setShardsTotal(config.totalShards)
.setShards(config.minClusterShard, config.maxClusterShard)
.setShards(config.minShards, config.maxShards)
.disableCache(CacheFlag.entries)
.enableCache(
CacheFlag.EMOJI,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package net.cakeyfox.foxy.command.vanilla.utils

import com.github.benmanes.caffeine.cache.Caffeine
import dev.minn.jda.ktx.coroutines.await
import net.cakeyfox.common.Colors
import net.cakeyfox.common.FoxyEmotes
import net.cakeyfox.foxy.command.FoxyInteractionContext
import net.cakeyfox.foxy.command.structure.FoxyCommandExecutor
import net.cakeyfox.serializable.database.data.FoxyUser
import okhttp3.Cache

class TopCakesExecutor : FoxyCommandExecutor() {
override suspend fun execute(context: FoxyInteractionContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import net.dv8tion.jda.api.hooks.ListenerAdapter
import kotlin.reflect.jvm.jvmName

class MajorEventListener(private val foxy: FoxyInstance): ListenerAdapter() {
private val logger = KotlinLogging.logger(this::class.jvmName)
private val coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob())
private val antiRaid = AntiRaidModule(foxy)
private val topggStats = TopggStatsSender(foxy)
Expand Down

0 comments on commit ff602b1

Please sign in to comment.