mirror of
https://github.com/HMCore/Orbot.git
synced 2025-12-12 13:56:18 +00:00
Update formatting
This commit is contained in:
@@ -8,7 +8,6 @@ import kotlinx.serialization.json.Json
|
||||
import net.dv8tion.jda.api.EmbedBuilder
|
||||
import net.dv8tion.jda.api.Permission
|
||||
import net.dv8tion.jda.api.entities.Message
|
||||
import net.dv8tion.jda.api.entities.TextChannel
|
||||
import java.awt.Color
|
||||
|
||||
object Channels {
|
||||
|
||||
@@ -19,7 +19,6 @@ import org.quartz.impl.StdSchedulerFactory
|
||||
import javax.security.auth.login.LoginException
|
||||
import kotlin.concurrent.timer
|
||||
|
||||
|
||||
object Main {
|
||||
@JvmField
|
||||
var jdas = mutableListOf<JDA>()
|
||||
@@ -28,7 +27,8 @@ object Main {
|
||||
fun main(args: Array<String>) {
|
||||
val builder = JDABuilder.createLight(
|
||||
Admin.token,
|
||||
GatewayIntent.GUILD_MESSAGES, GatewayIntent.DIRECT_MESSAGES)
|
||||
GatewayIntent.GUILD_MESSAGES, GatewayIntent.DIRECT_MESSAGES
|
||||
)
|
||||
.setActivity(Activity.watching(Admin.message))
|
||||
|
||||
configureMemoryUsage(builder)
|
||||
@@ -92,7 +92,6 @@ object Main {
|
||||
|
||||
}
|
||||
|
||||
|
||||
fun configureMemoryUsage(builder: JDABuilder) {
|
||||
// Disable cache for member activities (streaming/games/spotify)
|
||||
builder.disableCache(CacheFlag.ACTIVITY)
|
||||
@@ -110,5 +109,4 @@ object Main {
|
||||
// Large guilds will only provide online members in their setup and thus reduce bandwidth if chunking is disabled.
|
||||
builder.setLargeThreshold(50)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user