diff --git a/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt b/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt index a982c9b5..76797627 100644 --- a/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt +++ b/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt @@ -14,6 +14,7 @@ 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) @@ -24,6 +25,8 @@ class MajorEventListener(private val foxy: FoxyInstance): ListenerAdapter() { OnlineStatus.ONLINE, Activity.customStatus(Constants.DEFAULT_ACTIVITY(foxy.environment))) + logger.info { "Shard #${event.jda.shardInfo.shardId} is ready!" } + if (foxy.environment == "production") { topggStats.send(event.jda.guildCache.size()) } diff --git a/foxy/src/main/kotlin/net/cakeyfox/foxy/modules/antiraid/AntiRaidModule.kt b/foxy/src/main/kotlin/net/cakeyfox/foxy/modules/antiraid/AntiRaidModule.kt index 235c3965..6bff2c72 100644 --- a/foxy/src/main/kotlin/net/cakeyfox/foxy/modules/antiraid/AntiRaidModule.kt +++ b/foxy/src/main/kotlin/net/cakeyfox/foxy/modules/antiraid/AntiRaidModule.kt @@ -212,7 +212,7 @@ class AntiRaidModule( else -> throw IllegalArgumentException("Invalid action type! Received $action") } } catch (e: Exception) { - logger.warn { "Can't take an action for user ${user.id}! Missing permissions?" } + logger.warn { "Can't take an action for user ${user.id} on guild ${guild.id}! Missing permissions? ${e.message}" } } }