src/main/java/tracer/TRacer.java
/**
     * Start Thermostat and initialize all needed variables.
     * @throws Exception Any Exception that may occur.
     * @throws Error Any Error that may occur while loading.
     */
Start Thermostat and initialize all needed variables.
@throws Exception Any Exception that may occur.
@throws Error Any Error that may occur while loading.
Start Thermostat and initialize all needed variables . @throws Exception Any Exception that may occur . @throws Error Any Error that may occur while loading .
protected static void initialize() throws Exception, Error {
        final String[] config = Initialization.initializeTokens();
        Initialization.initEmojiFile("emojis-oliveratgithub.json");
        tRacerInst = JDABuilder
                .create(
                        config[1],
                        EnumSet.of(
                                GatewayIntent.GUILD_MESSAGES,
                                GatewayIntent.GUILD_MESSAGE_REACTIONS,
                                GatewayIntent.GUILD_EMOJIS
                        )
                )
                .enableCache(CacheFlag.EMOTE)
                .disableCache(
                        CacheFlag.ACTIVITY,
                        CacheFlag.CLIENT_STATUS,
                        CacheFlag.MEMBER_OVERRIDES,
                        CacheFlag.VOICE_STATE
                )
                .setMemberCachePolicy(MemberCachePolicy.NONE)
                .setChunkingFilter(ChunkingFilter.NONE)
                .setEnableShutdownHook(true)
                .addEventListeners(new EventDelegate())
                .build();
        Initialization.setConstants(config[0], tRacerInst.getSelfUser().getId(), tRacerInst.getSelfUser().getAvatarUrl());
        tRacerInst.getPresence().setPresence(OnlineStatus.DO_NOT_DISTURB, Activity.competing("loading..."));
    }
protected static void initialize ( ) throws Exception , Error { final String [ ] config = Initialization . initializeTokens ( ) ; Initialization . initEmojiFile ( "emojis-oliveratgithub.json" ) ; tRacerInst = JDABuilder . create ( config [ 1 ] , EnumSet . of ( GatewayIntent . GUILD_MESSAGES , GatewayIntent . GUILD_MESSAGE_REACTIONS , GatewayIntent . GUILD_EMOJIS ) ) . enableCache ( CacheFlag . EMOTE ) . disableCache ( CacheFlag . ACTIVITY , CacheFlag . CLIENT_STATUS , CacheFlag . MEMBER_OVERRIDES , CacheFlag . VOICE_STATE ) . setMemberCachePolicy ( MemberCachePolicy . NONE ) . setChunkingFilter ( ChunkingFilter . NONE ) . setEnableShutdownHook ( true ) . addEventListeners ( new EventDelegate ( ) ) . build ( ) ; Initialization . setConstants ( config [ 0 ] , tRacerInst . getSelfUser ( ) . getId ( ) , tRacerInst . getSelfUser ( ) . getAvatarUrl ( ) ) ; tRacerInst . getPresence ( ) . setPresence ( OnlineStatus . DO_NOT_DISTURB , Activity . competing ( "loading..." ) ) ; }
Start Thermostat and initialize all needed variables.
Start Thermostat and initialize all needed variables .
// Get the configuration values