QOL Fixes
This commit is contained in:
parent
88d5ca2ab3
commit
68bedc104b
|
@ -19,6 +19,7 @@ import net.dv8tion.jda.api.requests.GatewayIntent;
|
|||
import net.dv8tion.jda.api.requests.restaction.CommandCreateAction;
|
||||
import net.dv8tion.jda.api.utils.ChunkingFilter;
|
||||
import net.dv8tion.jda.api.utils.MemberCachePolicy;
|
||||
import net.dv8tion.jda.api.utils.cache.CacheFlag;
|
||||
import org.simpleyaml.configuration.file.YamlConfiguration;
|
||||
import org.simpleyaml.exceptions.InvalidConfigurationException;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -30,6 +31,7 @@ import java.io.FileNotFoundException;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.temporal.TemporalAccessor;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -162,6 +164,7 @@ public class Kiafumi {
|
|||
GatewayIntent.DIRECT_MESSAGES, GatewayIntent.GUILD_PRESENCES)
|
||||
.setChunkingFilter(ChunkingFilter.ALL)
|
||||
.setMemberCachePolicy(MemberCachePolicy.ALL)
|
||||
.disableCache(CacheFlag.VOICE_STATE, CacheFlag.EMOTE)
|
||||
.setActivity(Activity.of(Activity.ActivityType.valueOf(config.getActivityType()), config.getActivityMsg()))
|
||||
.setStatus(OnlineStatus.valueOf(config.getStatusType()))
|
||||
.addEventListeners(new MainListener()).build().awaitReady();
|
||||
|
@ -174,8 +177,12 @@ public class Kiafumi {
|
|||
registerAllCommands();
|
||||
info("Loaded " + activeCommands.size() + " commands.");
|
||||
|
||||
EmbedBuilder eb = new EmbedBuilder().setTitle("Kiafumi Online")
|
||||
.setFooter("Created by Oko, Laika, and Tiddy").setColor(new Color(0x6271c1));
|
||||
EmbedBuilder eb = new EmbedBuilder()
|
||||
.setTitle("Kiafumi Online")
|
||||
.setFooter("Created by Oko, Laika, and Tiddy")
|
||||
.setColor(new Color(0x6271c1))
|
||||
.setTimestamp(ZonedDateTime.now())
|
||||
.setAuthor("Kiafumi!", null, Kiafumi.JDA.getSelfUser().getAvatarUrl());
|
||||
JDA.getTextChannelById(config.getLogChannel()).sendMessageEmbeds(eb.build()).queue();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue