forked from Fascinated/Bat
cleanup
This commit is contained in:
parent
5f099a97f0
commit
b3a6284e40
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.afk;
|
package cc.fascinated.bat.afk;
|
||||||
|
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.features.afk.command.AfkCommand;
|
import cc.fascinated.bat.afk.command.AfkCommand;
|
||||||
import cc.fascinated.bat.service.CommandService;
|
import cc.fascinated.bat.service.CommandService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.afk;
|
package cc.fascinated.bat.afk;
|
||||||
|
|
||||||
import cc.fascinated.bat.event.EventListener;
|
import cc.fascinated.bat.event.EventListener;
|
||||||
import cc.fascinated.bat.features.afk.profile.AfkProfile;
|
import cc.fascinated.bat.afk.profile.AfkProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
||||||
import net.dv8tion.jda.api.entities.User;
|
import net.dv8tion.jda.api.entities.User;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.afk;
|
package cc.fascinated.bat.afk;
|
||||||
|
|
||||||
import cc.fascinated.bat.event.EventListener;
|
import cc.fascinated.bat.event.EventListener;
|
||||||
import cc.fascinated.bat.features.afk.profile.AfkProfile;
|
import cc.fascinated.bat.afk.profile.AfkProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.afk.command;
|
package cc.fascinated.bat.afk.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.MemberUtils;
|
import cc.fascinated.bat.common.MemberUtils;
|
||||||
import cc.fascinated.bat.features.afk.profile.AfkProfile;
|
import cc.fascinated.bat.afk.profile.AfkProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,7 +1,7 @@
|
|||||||
package cc.fascinated.bat.features.afk.profile;
|
package cc.fascinated.bat.afk.profile;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import net.dv8tion.jda.api.entities.Guild;
|
import net.dv8tion.jda.api.entities.Guild;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.autorole;
|
package cc.fascinated.bat.autorole;
|
||||||
|
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.features.autorole.command.AutoRoleCommand;
|
import cc.fascinated.bat.autorole.command.AutoRoleCommand;
|
||||||
import cc.fascinated.bat.service.CommandService;
|
import cc.fascinated.bat.service.CommandService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.autorole;
|
package cc.fascinated.bat.autorole;
|
||||||
|
|
||||||
import cc.fascinated.bat.event.EventListener;
|
import cc.fascinated.bat.event.EventListener;
|
||||||
import cc.fascinated.bat.features.autorole.profile.AutoRoleProfile;
|
import cc.fascinated.bat.autorole.profile.AutoRoleProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.FeatureService;
|
import cc.fascinated.bat.service.FeatureService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.autorole.command;
|
package cc.fascinated.bat.autorole.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.RoleUtils;
|
import cc.fascinated.bat.common.RoleUtils;
|
||||||
import cc.fascinated.bat.features.autorole.profile.AutoRoleProfile;
|
import cc.fascinated.bat.autorole.profile.AutoRoleProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.autorole.command;
|
package cc.fascinated.bat.autorole.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.autorole.command;
|
package cc.fascinated.bat.autorole.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.autorole.profile.AutoRoleProfile;
|
import cc.fascinated.bat.autorole.profile.AutoRoleProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.autorole.command;
|
package cc.fascinated.bat.autorole.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.autorole.profile.AutoRoleProfile;
|
import cc.fascinated.bat.autorole.profile.AutoRoleProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.EmbedBuilder;
|
import net.dv8tion.jda.api.EmbedBuilder;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.autorole.command;
|
package cc.fascinated.bat.autorole.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.autorole.profile.AutoRoleProfile;
|
import cc.fascinated.bat.autorole.profile.AutoRoleProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.autorole.command;
|
package cc.fascinated.bat.autorole.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.DescriptionBuilder;
|
import cc.fascinated.bat.common.DescriptionBuilder;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.autorole.profile.AutoRoleProfile;
|
import cc.fascinated.bat.autorole.profile.AutoRoleProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
import net.dv8tion.jda.api.entities.Guild;
|
import net.dv8tion.jda.api.entities.Guild;
|
@ -1,7 +1,7 @@
|
|||||||
package cc.fascinated.bat.features.autorole.profile;
|
package cc.fascinated.bat.autorole.profile;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.service.DiscordService;
|
import cc.fascinated.bat.service.DiscordService;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,21 +1,21 @@
|
|||||||
package cc.fascinated.bat.features.base;
|
package cc.fascinated.bat.base;
|
||||||
|
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.features.base.commands.botadmin.BotAdminCommand;
|
import cc.fascinated.bat.base.commands.botadmin.BotAdminCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.fun.CoinFlipCommand;
|
import cc.fascinated.bat.base.commands.fun.CoinFlipCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.fun.EightBallCommand;
|
import cc.fascinated.bat.base.commands.fun.EightBallCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.fun.PPSizeCommand;
|
import cc.fascinated.bat.base.commands.fun.PPSizeCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.fun.image.ImageCommand;
|
import cc.fascinated.bat.base.commands.fun.image.ImageCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.general.*;
|
import cc.fascinated.bat.base.commands.general.*;
|
||||||
import cc.fascinated.bat.features.base.commands.general.avatar.AvatarCommand;
|
import cc.fascinated.bat.base.commands.general.avatar.AvatarCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.general.banner.BannerCommand;
|
import cc.fascinated.bat.base.commands.general.banner.BannerCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.server.MemberCountCommand;
|
import cc.fascinated.bat.base.commands.server.MemberCountCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.server.PremiumCommand;
|
import cc.fascinated.bat.base.commands.server.PremiumCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.server.channel.ChannelCommand;
|
import cc.fascinated.bat.base.commands.server.channel.ChannelCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.server.feature.FeatureCommand;
|
import cc.fascinated.bat.base.commands.server.feature.FeatureCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.utility.PastebinCommand;
|
import cc.fascinated.bat.base.commands.utility.PastebinCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.utility.lookup.LookupCommand;
|
import cc.fascinated.bat.base.commands.utility.lookup.LookupCommand;
|
||||||
import cc.fascinated.bat.service.CommandService;
|
import cc.fascinated.bat.service.CommandService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.botadmin;
|
package cc.fascinated.bat.base.commands.botadmin;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.features.base.commands.botadmin.premium.PremiumRemoveSubCommand;
|
import cc.fascinated.bat.base.commands.botadmin.premium.PremiumRemoveSubCommand;
|
||||||
import cc.fascinated.bat.features.base.commands.botadmin.premium.PremiumSetSubCommand;
|
import cc.fascinated.bat.base.commands.botadmin.premium.PremiumSetSubCommand;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.botadmin.premium;
|
package cc.fascinated.bat.base.commands.botadmin.premium;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.premium.PremiumProfile;
|
import cc.fascinated.bat.premium.PremiumProfile;
|
||||||
import cc.fascinated.bat.service.GuildService;
|
import cc.fascinated.bat.service.GuildService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.botadmin.premium;
|
package cc.fascinated.bat.base.commands.botadmin.premium;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.premium.PremiumProfile;
|
import cc.fascinated.bat.premium.PremiumProfile;
|
||||||
import cc.fascinated.bat.service.GuildService;
|
import cc.fascinated.bat.service.GuildService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun;
|
package cc.fascinated.bat.base.commands.fun;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun;
|
package cc.fascinated.bat.base.commands.fun;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,13 +1,13 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun;
|
package cc.fascinated.bat.base.commands.fun;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.DescriptionBuilder;
|
import cc.fascinated.bat.common.DescriptionBuilder;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.MathUtils;
|
import cc.fascinated.bat.common.MathUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun.image;
|
package cc.fascinated.bat.base.commands.fun.image;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.WebRequest;
|
import cc.fascinated.bat.common.WebRequest;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.model.token.thecatapi.CatImageToken;
|
import cc.fascinated.bat.common.model.token.thecatapi.CatImageToken;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun.image;
|
package cc.fascinated.bat.base.commands.fun.image;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.WebRequest;
|
import cc.fascinated.bat.common.WebRequest;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.model.token.dogceo.RandomImage;
|
import cc.fascinated.bat.common.model.token.dogceo.RandomImage;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun.image;
|
package cc.fascinated.bat.base.commands.fun.image;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.WebRequest;
|
import cc.fascinated.bat.common.WebRequest;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.model.token.randomd.RandomDuck;
|
import cc.fascinated.bat.common.model.token.randomd.RandomDuck;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun.image;
|
package cc.fascinated.bat.base.commands.fun.image;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.WebRequest;
|
import cc.fascinated.bat.common.WebRequest;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.model.token.randomfox.RandomFoxToken;
|
import cc.fascinated.bat.common.model.token.randomfox.RandomFoxToken;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.fun.image;
|
package cc.fascinated.bat.base.commands.fun.image;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general;
|
package cc.fascinated.bat.base.commands.general;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.*;
|
import cc.fascinated.bat.common.*;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.DiscordService;
|
import cc.fascinated.bat.service.DiscordService;
|
||||||
import cc.fascinated.bat.service.GuildService;
|
import cc.fascinated.bat.service.GuildService;
|
||||||
import cc.fascinated.bat.service.UserService;
|
import cc.fascinated.bat.service.UserService;
|
@ -1,16 +1,16 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general;
|
package cc.fascinated.bat.base.commands.general;
|
||||||
|
|
||||||
import cc.fascinated.bat.Consts;
|
import cc.fascinated.bat.Consts;
|
||||||
import cc.fascinated.bat.Emojis;
|
import cc.fascinated.bat.Emojis;
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.DescriptionBuilder;
|
import cc.fascinated.bat.common.DescriptionBuilder;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.InteractionBuilder;
|
import cc.fascinated.bat.common.InteractionBuilder;
|
||||||
import cc.fascinated.bat.event.EventListener;
|
import cc.fascinated.bat.event.EventListener;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.CommandService;
|
import cc.fascinated.bat.service.CommandService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general;
|
package cc.fascinated.bat.base.commands.general;
|
||||||
|
|
||||||
import cc.fascinated.bat.Consts;
|
import cc.fascinated.bat.Consts;
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,10 +1,10 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general;
|
package cc.fascinated.bat.base.commands.general;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.DiscordService;
|
import cc.fascinated.bat.service.DiscordService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general;
|
package cc.fascinated.bat.base.commands.general;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.DescriptionBuilder;
|
import cc.fascinated.bat.common.DescriptionBuilder;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general.avatar;
|
package cc.fascinated.bat.base.commands.general.avatar;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general.avatar;
|
package cc.fascinated.bat.base.commands.general.avatar;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general.avatar;
|
package cc.fascinated.bat.base.commands.general.avatar;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general.banner;
|
package cc.fascinated.bat.base.commands.general.banner;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general.banner;
|
package cc.fascinated.bat.base.commands.general.banner;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.general.banner;
|
package cc.fascinated.bat.base.commands.general.banner;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server;
|
package cc.fascinated.bat.base.commands.server;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.NumberFormatter;
|
import cc.fascinated.bat.common.NumberFormatter;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Guild;
|
import net.dv8tion.jda.api.entities.Guild;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,10 +1,10 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server;
|
package cc.fascinated.bat.base.commands.server;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.premium.PremiumProfile;
|
import cc.fascinated.bat.premium.PremiumProfile;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.EmbedBuilder;
|
import net.dv8tion.jda.api.EmbedBuilder;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.channel;
|
package cc.fascinated.bat.base.commands.server.channel;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,10 +1,10 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.channel;
|
package cc.fascinated.bat.base.commands.server.channel;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,10 +1,10 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.channel;
|
package cc.fascinated.bat.base.commands.server.channel;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,10 +1,10 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.channel;
|
package cc.fascinated.bat.base.commands.server.channel;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.feature;
|
package cc.fascinated.bat.base.commands.server.feature;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.FeatureService;
|
import cc.fascinated.bat.service.FeatureService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.feature;
|
package cc.fascinated.bat.base.commands.server.feature;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.FeatureService;
|
import cc.fascinated.bat.service.FeatureService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.feature;
|
package cc.fascinated.bat.base.commands.server.feature;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.server.feature;
|
package cc.fascinated.bat.base.commands.server.feature;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.FeatureService;
|
import cc.fascinated.bat.service.FeatureService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,13 +1,13 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.utility;
|
package cc.fascinated.bat.base.commands.utility;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.DescriptionBuilder;
|
import cc.fascinated.bat.common.DescriptionBuilder;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.PasteUtils;
|
import cc.fascinated.bat.common.PasteUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.utility.lookup;
|
package cc.fascinated.bat.base.commands.utility.lookup;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.base.commands.utility.lookup;
|
package cc.fascinated.bat.base.commands.utility.lookup;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.DescriptionBuilder;
|
import cc.fascinated.bat.common.DescriptionBuilder;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.UserService;
|
import cc.fascinated.bat.service.UserService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.birthday;
|
package cc.fascinated.bat.birthday;
|
||||||
|
|
||||||
import cc.fascinated.bat.event.EventListener;
|
import cc.fascinated.bat.event.EventListener;
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.features.birthday.command.BirthdayCommand;
|
import cc.fascinated.bat.birthday.command.BirthdayCommand;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.service.CommandService;
|
import cc.fascinated.bat.service.CommandService;
|
||||||
import cc.fascinated.bat.service.DiscordService;
|
import cc.fascinated.bat.service.DiscordService;
|
||||||
import cc.fascinated.bat.service.GuildService;
|
import cc.fascinated.bat.service.GuildService;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.features.birthday;
|
package cc.fascinated.bat.birthday;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.birthday.command;
|
package cc.fascinated.bat.birthday.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.Category;
|
import cc.fascinated.bat.common.command.Category;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.birthday.command;
|
package cc.fascinated.bat.birthday.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.TextChannelUtils;
|
import cc.fascinated.bat.common.TextChannelUtils;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.birthday.command;
|
package cc.fascinated.bat.birthday.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.birthday.command;
|
package cc.fascinated.bat.birthday.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.birthday.UserBirthday;
|
import cc.fascinated.bat.birthday.UserBirthday;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.features.birthday.command;
|
package cc.fascinated.bat.birthday.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.birthday.command;
|
package cc.fascinated.bat.birthday.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.birthday.UserBirthday;
|
import cc.fascinated.bat.birthday.UserBirthday;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.birthday.command;
|
package cc.fascinated.bat.birthday.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.birthday.UserBirthday;
|
import cc.fascinated.bat.birthday.UserBirthday;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.service.UserService;
|
import cc.fascinated.bat.service.UserService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.birthday.profile;
|
package cc.fascinated.bat.birthday.profile;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.ChannelUtils;
|
import cc.fascinated.bat.common.ChannelUtils;
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import cc.fascinated.bat.features.birthday.UserBirthday;
|
import cc.fascinated.bat.birthday.UserBirthday;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
@ -1,7 +1,7 @@
|
|||||||
package cc.fascinated.bat.common;
|
package cc.fascinated.bat.common;
|
||||||
|
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.experimental.UtilityClass;
|
import lombok.experimental.UtilityClass;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Role;
|
import net.dv8tion.jda.api.entities.Role;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package cc.fascinated.bat.common;
|
package cc.fascinated.bat.common;
|
||||||
|
|
||||||
import cc.fascinated.bat.BatApplication;
|
import cc.fascinated.bat.BatApplication;
|
||||||
import cc.fascinated.bat.model.token.paste.PasteUploadToken;
|
import cc.fascinated.bat.common.model.token.paste.PasteUploadToken;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
import lombok.experimental.UtilityClass;
|
import lombok.experimental.UtilityClass;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package cc.fascinated.bat.common;
|
package cc.fascinated.bat.common;
|
||||||
|
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import lombok.experimental.UtilityClass;
|
import lombok.experimental.UtilityClass;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
package cc.fascinated.bat.common.beatsaber.leaderboard;
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
@AllArgsConstructor @Getter
|
|
||||||
public class Leaderboard {
|
|
||||||
/**
|
|
||||||
* The name of the leaderboard.
|
|
||||||
*/
|
|
||||||
private final String name;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The version of the leaderboard.
|
|
||||||
*/
|
|
||||||
private int curveVersion;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The curve of the leaderboard.
|
|
||||||
*/
|
|
||||||
private final LeaderboardCurvePoint[] curve;
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
package cc.fascinated.bat.common.beatsaber.leaderboard;
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
@Getter @AllArgsConstructor
|
|
||||||
public class LeaderboardCurvePoint {
|
|
||||||
private final double a;
|
|
||||||
private final double b;
|
|
||||||
}
|
|
@ -1,167 +0,0 @@
|
|||||||
package cc.fascinated.bat.common.beatsaber.leaderboard.impl;
|
|
||||||
|
|
||||||
import cc.fascinated.bat.common.MathUtils;
|
|
||||||
import cc.fascinated.bat.common.beatsaber.leaderboard.Leaderboard;
|
|
||||||
import cc.fascinated.bat.common.beatsaber.leaderboard.LeaderboardCurvePoint;
|
|
||||||
import cc.fascinated.bat.model.token.beatsaber.scoresaber.ScoreSaberScoreToken;
|
|
||||||
import lombok.extern.log4j.Log4j2;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Log4j2(topic = "ScoreSaber Leaderboard")
|
|
||||||
public class ScoreSaberLeaderboard extends Leaderboard {
|
|
||||||
public static final ScoreSaberLeaderboard INSTANCE = new ScoreSaberLeaderboard();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base multiplier for stars.
|
|
||||||
*/
|
|
||||||
private final double starMultiplier = 42.11;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* no idea, ngl
|
|
||||||
*/
|
|
||||||
private final double weightCoefficient = 0.965;
|
|
||||||
|
|
||||||
public ScoreSaberLeaderboard() {
|
|
||||||
super("ScoreSaber", 1, new LeaderboardCurvePoint[] {
|
|
||||||
new LeaderboardCurvePoint(1.0, 5.367394282890631),
|
|
||||||
new LeaderboardCurvePoint(0.9995, 5.019543595874787),
|
|
||||||
new LeaderboardCurvePoint(0.999, 4.715470646416203),
|
|
||||||
new LeaderboardCurvePoint(0.99825, 4.325027383589547),
|
|
||||||
new LeaderboardCurvePoint(0.9975, 3.996793606763322),
|
|
||||||
new LeaderboardCurvePoint(0.99625, 3.5526145337555373),
|
|
||||||
new LeaderboardCurvePoint(0.995, 3.2022017597337955),
|
|
||||||
new LeaderboardCurvePoint(0.99375, 2.9190155639254955),
|
|
||||||
new LeaderboardCurvePoint(0.9925, 2.685667856592722),
|
|
||||||
new LeaderboardCurvePoint(0.99125, 2.4902905794106913),
|
|
||||||
new LeaderboardCurvePoint(0.99, 2.324506282149922),
|
|
||||||
new LeaderboardCurvePoint(0.9875, 2.058947159052738),
|
|
||||||
new LeaderboardCurvePoint(0.985, 1.8563887693647105),
|
|
||||||
new LeaderboardCurvePoint(0.9825, 1.697536248647543),
|
|
||||||
new LeaderboardCurvePoint(0.98, 1.5702410055532239),
|
|
||||||
new LeaderboardCurvePoint(0.9775, 1.4664726399289512),
|
|
||||||
new LeaderboardCurvePoint(0.975, 1.3807102743105126),
|
|
||||||
new LeaderboardCurvePoint(0.9725, 1.3090333065057616),
|
|
||||||
new LeaderboardCurvePoint(0.97, 1.2485807759957321),
|
|
||||||
new LeaderboardCurvePoint(0.965, 1.1552120359501035),
|
|
||||||
new LeaderboardCurvePoint(0.96, 1.0871883573850478),
|
|
||||||
new LeaderboardCurvePoint(0.955, 1.0388633331418984),
|
|
||||||
new LeaderboardCurvePoint(0.95, 1.0),
|
|
||||||
new LeaderboardCurvePoint(0.94, 0.9417362980580238),
|
|
||||||
new LeaderboardCurvePoint(0.93, 0.9039994071865736),
|
|
||||||
new LeaderboardCurvePoint(0.92, 0.8728710341448851),
|
|
||||||
new LeaderboardCurvePoint(0.91, 0.8488375988124467),
|
|
||||||
new LeaderboardCurvePoint(0.9, 0.825756123560842),
|
|
||||||
new LeaderboardCurvePoint(0.875, 0.7816934560296046),
|
|
||||||
new LeaderboardCurvePoint(0.85, 0.7462290664143185),
|
|
||||||
new LeaderboardCurvePoint(0.825, 0.7150465663454271),
|
|
||||||
new LeaderboardCurvePoint(0.8, 0.6872268862950283),
|
|
||||||
new LeaderboardCurvePoint(0.75, 0.6451808210101443),
|
|
||||||
new LeaderboardCurvePoint(0.7, 0.6125565959114954),
|
|
||||||
new LeaderboardCurvePoint(0.65, 0.5866010012767576),
|
|
||||||
new LeaderboardCurvePoint(0.6, 0.18223233667439062),
|
|
||||||
new LeaderboardCurvePoint(0.0, 0.0)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the modifier for the given accuracy.
|
|
||||||
*
|
|
||||||
* @param accuracy The accuracy.
|
|
||||||
* @return The modifier.
|
|
||||||
*/
|
|
||||||
public double getModifier(double accuracy) {
|
|
||||||
accuracy = MathUtils.clamp(accuracy, 0, 100) / 100;
|
|
||||||
|
|
||||||
LeaderboardCurvePoint prev = this.getCurve()[1];
|
|
||||||
for (LeaderboardCurvePoint point : this.getCurve()) {
|
|
||||||
if (point.getA() <= accuracy) {
|
|
||||||
double distance = (prev.getA() - accuracy) / (prev.getA() - point.getA());
|
|
||||||
return MathUtils.lerp(prev.getB(), point.getB(), distance);
|
|
||||||
}
|
|
||||||
prev = point;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the pp for the given accuracy and stars.
|
|
||||||
*
|
|
||||||
* @param accuracy The accuracy.
|
|
||||||
* @param stars The stars.
|
|
||||||
* @return The pp.
|
|
||||||
*/
|
|
||||||
public double getPP(double accuracy, double stars) {
|
|
||||||
double pp = stars * this.starMultiplier;
|
|
||||||
double modifier = this.getModifier(accuracy);
|
|
||||||
return modifier * pp;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the total pp for the given scores.
|
|
||||||
*
|
|
||||||
* @param scores The scores.
|
|
||||||
* @return The total pp.
|
|
||||||
*/
|
|
||||||
private double getTotalPP(List<ScoreSaberScoreToken> scores, int startIdx) {
|
|
||||||
double totalPP = 0;
|
|
||||||
for (int i = 0; i < scores.size(); i++) {
|
|
||||||
totalPP += Math.pow(this.weightCoefficient, i + startIdx) * scores.get(i).getPp();
|
|
||||||
}
|
|
||||||
return totalPP;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the pp at the given index for the given scores.
|
|
||||||
*
|
|
||||||
* @param bottomScores The scores.
|
|
||||||
* @param idx The index.
|
|
||||||
* @return The pp.
|
|
||||||
*/
|
|
||||||
private double getRawPPAtIdx(List<ScoreSaberScoreToken> bottomScores, int idx, double expected) {
|
|
||||||
double oldBottomPP = this.getTotalPP(bottomScores, idx);
|
|
||||||
double newBottomPP = this.getTotalPP(bottomScores, idx + 1);
|
|
||||||
|
|
||||||
return (expected + oldBottomPP - newBottomPP) / Math.pow(this.weightCoefficient, idx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the raw pp per global pp for the given scores.
|
|
||||||
*
|
|
||||||
* @param scores The scores.
|
|
||||||
* @param expectedPP The expected pp.
|
|
||||||
* @return The raw pp per global pp.
|
|
||||||
*/
|
|
||||||
public double getRawPerGlobalPP(List<ScoreSaberScoreToken> scores, double expectedPP) {
|
|
||||||
int left = 0;
|
|
||||||
int right = scores.size() - 1;
|
|
||||||
int boundaryIdx = -1;
|
|
||||||
|
|
||||||
// Sort by PP
|
|
||||||
scores.sort((a, b) -> Double.compare(b.getPp(), a.getPp()));
|
|
||||||
|
|
||||||
while (left <= right) {
|
|
||||||
int mid = (left + right) / 2;
|
|
||||||
double bottomPP = this.getTotalPP(scores.subList(mid, scores.size()), mid);
|
|
||||||
|
|
||||||
List<ScoreSaberScoreToken> bottomSlice = new ArrayList<>(scores.subList(mid, scores.size()));
|
|
||||||
bottomSlice.add(0, scores.get(mid));
|
|
||||||
double modifiedBottomPP = this.getTotalPP(bottomSlice, mid);
|
|
||||||
double diff = modifiedBottomPP - bottomPP;
|
|
||||||
|
|
||||||
if (diff > expectedPP) {
|
|
||||||
boundaryIdx = mid;
|
|
||||||
left = mid + 1;
|
|
||||||
} else {
|
|
||||||
right = mid - 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (boundaryIdx == -1) {
|
|
||||||
return this.getRawPPAtIdx(scores, 0, expectedPP);
|
|
||||||
} else {
|
|
||||||
return this.getRawPPAtIdx(scores.subList(boundaryIdx + 1, scores.size()), boundaryIdx + 1, expectedPP);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.command;
|
package cc.fascinated.bat.common.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import net.dv8tion.jda.api.EmbedBuilder;
|
import net.dv8tion.jda.api.EmbedBuilder;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.command;
|
package cc.fascinated.bat.common.command;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.command;
|
package cc.fascinated.bat.common.command;
|
||||||
|
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.command;
|
package cc.fascinated.bat.common.command;
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,6 +1,6 @@
|
|||||||
package cc.fascinated.bat.features;
|
package cc.fascinated.bat.common.feature;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.service.CommandService;
|
import cc.fascinated.bat.service.CommandService;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.features;
|
package cc.fascinated.bat.common.feature;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
@ -1,18 +1,18 @@
|
|||||||
package cc.fascinated.bat.model;
|
package cc.fascinated.bat.common.model;
|
||||||
|
|
||||||
import cc.fascinated.bat.BatApplication;
|
import cc.fascinated.bat.BatApplication;
|
||||||
import cc.fascinated.bat.common.ProfileHolder;
|
import cc.fascinated.bat.common.ProfileHolder;
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.features.birthday.profile.BirthdayProfile;
|
import cc.fascinated.bat.birthday.profile.BirthdayProfile;
|
||||||
import cc.fascinated.bat.features.counter.CounterProfile;
|
import cc.fascinated.bat.counter.CounterProfile;
|
||||||
import cc.fascinated.bat.features.leveling.LevelingProfile;
|
import cc.fascinated.bat.leveling.LevelingProfile;
|
||||||
import cc.fascinated.bat.features.logging.LogProfile;
|
import cc.fascinated.bat.logging.LogProfile;
|
||||||
import cc.fascinated.bat.features.moderation.punish.PunishmentProfile;
|
import cc.fascinated.bat.moderation.punish.PunishmentProfile;
|
||||||
import cc.fascinated.bat.features.namehistory.profile.guild.NameHistoryProfile;
|
import cc.fascinated.bat.namehistory.profile.guild.NameHistoryProfile;
|
||||||
import cc.fascinated.bat.features.reminder.ReminderProfile;
|
import cc.fascinated.bat.reminder.ReminderProfile;
|
||||||
import cc.fascinated.bat.features.statschannel.StatsChannelProfile;
|
import cc.fascinated.bat.statschannel.StatsChannelProfile;
|
||||||
import cc.fascinated.bat.features.welcomer.WelcomerProfile;
|
import cc.fascinated.bat.welcomer.WelcomerProfile;
|
||||||
import cc.fascinated.bat.premium.PremiumProfile;
|
import cc.fascinated.bat.premium.PremiumProfile;
|
||||||
import cc.fascinated.bat.service.DiscordService;
|
import cc.fascinated.bat.service.DiscordService;
|
||||||
import cc.fascinated.bat.service.MongoService;
|
import cc.fascinated.bat.service.MongoService;
|
@ -1,10 +1,10 @@
|
|||||||
package cc.fascinated.bat.model;
|
package cc.fascinated.bat.common.model;
|
||||||
|
|
||||||
import cc.fascinated.bat.BatApplication;
|
import cc.fascinated.bat.BatApplication;
|
||||||
import cc.fascinated.bat.common.ProfileHolder;
|
import cc.fascinated.bat.common.ProfileHolder;
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import cc.fascinated.bat.common.UserUtils;
|
import cc.fascinated.bat.common.UserUtils;
|
||||||
import cc.fascinated.bat.features.namehistory.profile.user.NameHistoryProfile;
|
import cc.fascinated.bat.namehistory.profile.user.NameHistoryProfile;
|
||||||
import cc.fascinated.bat.service.DiscordService;
|
import cc.fascinated.bat.service.DiscordService;
|
||||||
import cc.fascinated.bat.service.MongoService;
|
import cc.fascinated.bat.service.MongoService;
|
||||||
import com.mongodb.client.model.ReplaceOptions;
|
import com.mongodb.client.model.ReplaceOptions;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model;
|
package cc.fascinated.bat.common.model;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.ChannelUtils;
|
import cc.fascinated.bat.common.ChannelUtils;
|
||||||
import cc.fascinated.bat.common.UserUtils;
|
import cc.fascinated.bat.common.UserUtils;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.beatsaber.scoresaber;
|
package cc.fascinated.bat.common.model.token.beatsaber.scoresaber;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.beatsaber.scoresaber;
|
package cc.fascinated.bat.common.model.token.beatsaber.scoresaber;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.beatsaber.scoresaber;
|
package cc.fascinated.bat.common.model.token.beatsaber.scoresaber;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.beatsaber.scoresaber;
|
package cc.fascinated.bat.common.model.token.beatsaber.scoresaber;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.beatsaber.scoresaber;
|
package cc.fascinated.bat.common.model.token.beatsaber.scoresaber;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.beatsaber.scoresaber;
|
package cc.fascinated.bat.common.model.token.beatsaber.scoresaber;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.dogceo;
|
package cc.fascinated.bat.common.model.token.dogceo;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.paste;
|
package cc.fascinated.bat.common.model.token.paste;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.randomd;
|
package cc.fascinated.bat.common.model.token.randomd;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.randomfox;
|
package cc.fascinated.bat.common.model.token.randomfox;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.model.token.thecatapi;
|
package cc.fascinated.bat.common.model.token.thecatapi;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.features.counter;
|
package cc.fascinated.bat.counter;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.ChannelUtils;
|
import cc.fascinated.bat.common.ChannelUtils;
|
||||||
import cc.fascinated.bat.common.NumberUtils;
|
import cc.fascinated.bat.common.NumberUtils;
|
@ -1,8 +1,8 @@
|
|||||||
package cc.fascinated.bat.features.counter;
|
package cc.fascinated.bat.counter;
|
||||||
|
|
||||||
import cc.fascinated.bat.features.Feature;
|
import cc.fascinated.bat.common.feature.Feature;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.features.counter.command.CounterCommand;
|
import cc.fascinated.bat.counter.command.CounterCommand;
|
||||||
import cc.fascinated.bat.service.CommandService;
|
import cc.fascinated.bat.service.CommandService;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.features.counter;
|
package cc.fascinated.bat.counter;
|
||||||
|
|
||||||
import cc.fascinated.bat.common.Serializable;
|
import cc.fascinated.bat.common.Serializable;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
@ -1,4 +1,4 @@
|
|||||||
package cc.fascinated.bat.features.counter;
|
package cc.fascinated.bat.counter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
@ -1,9 +1,9 @@
|
|||||||
package cc.fascinated.bat.features.counter;
|
package cc.fascinated.bat.counter;
|
||||||
|
|
||||||
import cc.fascinated.bat.event.EventListener;
|
import cc.fascinated.bat.event.EventListener;
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
import cc.fascinated.bat.common.feature.FeatureProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.emoji.Emoji;
|
import net.dv8tion.jda.api.entities.emoji.Emoji;
|
||||||
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
@ -1,7 +1,7 @@
|
|||||||
package cc.fascinated.bat.features.counter.command;
|
package cc.fascinated.bat.counter.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.Permission;
|
import net.dv8tion.jda.api.Permission;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,14 +1,14 @@
|
|||||||
package cc.fascinated.bat.features.counter.command;
|
package cc.fascinated.bat.counter.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.Emojis;
|
import cc.fascinated.bat.Emojis;
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.common.NumberFormatter;
|
import cc.fascinated.bat.common.NumberFormatter;
|
||||||
import cc.fascinated.bat.features.counter.CounterChannel;
|
import cc.fascinated.bat.counter.CounterChannel;
|
||||||
import cc.fascinated.bat.features.counter.CounterProfile;
|
import cc.fascinated.bat.counter.CounterProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,13 +1,13 @@
|
|||||||
package cc.fascinated.bat.features.counter.command;
|
package cc.fascinated.bat.counter.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.Emojis;
|
import cc.fascinated.bat.Emojis;
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.counter.CounterChannel;
|
import cc.fascinated.bat.counter.CounterChannel;
|
||||||
import cc.fascinated.bat.features.counter.CounterProfile;
|
import cc.fascinated.bat.counter.CounterProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,13 +1,13 @@
|
|||||||
package cc.fascinated.bat.features.counter.command;
|
package cc.fascinated.bat.counter.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.Emojis;
|
import cc.fascinated.bat.Emojis;
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.counter.CounterChannel;
|
import cc.fascinated.bat.counter.CounterChannel;
|
||||||
import cc.fascinated.bat.features.counter.CounterProfile;
|
import cc.fascinated.bat.counter.CounterProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,12 +1,12 @@
|
|||||||
package cc.fascinated.bat.features.counter.command;
|
package cc.fascinated.bat.counter.command;
|
||||||
|
|
||||||
import cc.fascinated.bat.Emojis;
|
import cc.fascinated.bat.Emojis;
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
import cc.fascinated.bat.common.command.BatCommand;
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
import cc.fascinated.bat.common.command.CommandInfo;
|
||||||
import cc.fascinated.bat.common.EmbedUtils;
|
import cc.fascinated.bat.common.EmbedUtils;
|
||||||
import cc.fascinated.bat.features.counter.CounterProfile;
|
import cc.fascinated.bat.counter.CounterProfile;
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
import net.dv8tion.jda.api.entities.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
@ -1,11 +1,11 @@
|
|||||||
package cc.fascinated.bat.event;
|
package cc.fascinated.bat.event;
|
||||||
|
|
||||||
import cc.fascinated.bat.model.BatGuild;
|
import cc.fascinated.bat.common.model.BatGuild;
|
||||||
import cc.fascinated.bat.model.BatUser;
|
import cc.fascinated.bat.common.model.BatUser;
|
||||||
import cc.fascinated.bat.model.DiscordMessage;
|
import cc.fascinated.bat.common.model.DiscordMessage;
|
||||||
import cc.fascinated.bat.model.token.beatsaber.scoresaber.ScoreSaberLeaderboardToken;
|
import cc.fascinated.bat.common.model.token.beatsaber.scoresaber.ScoreSaberLeaderboardToken;
|
||||||
import cc.fascinated.bat.model.token.beatsaber.scoresaber.ScoreSaberPlayerScoreToken;
|
import cc.fascinated.bat.common.model.token.beatsaber.scoresaber.ScoreSaberPlayerScoreToken;
|
||||||
import cc.fascinated.bat.model.token.beatsaber.scoresaber.ScoreSaberScoreToken;
|
import cc.fascinated.bat.common.model.token.beatsaber.scoresaber.ScoreSaberScoreToken;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import net.dv8tion.jda.api.entities.Guild;
|
import net.dv8tion.jda.api.entities.Guild;
|
||||||
import net.dv8tion.jda.api.entities.Invite;
|
import net.dv8tion.jda.api.entities.Invite;
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
package cc.fascinated.bat.features.drag;
|
|
||||||
|
|
||||||
import cc.fascinated.bat.features.Feature;
|
|
||||||
import cc.fascinated.bat.features.FeatureProfile;
|
|
||||||
import cc.fascinated.bat.features.drag.command.DragCommand;
|
|
||||||
import cc.fascinated.bat.service.CommandService;
|
|
||||||
import lombok.NonNull;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.ApplicationContext;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Fascinated (fascinated7)
|
|
||||||
*/
|
|
||||||
@Component
|
|
||||||
public class DragFeature extends Feature {
|
|
||||||
@Autowired
|
|
||||||
public DragFeature(@NonNull ApplicationContext context, @NonNull CommandService commandService) {
|
|
||||||
super("Drag", FeatureProfile.FeatureState.DISABLED, true);
|
|
||||||
|
|
||||||
super.registerCommand(commandService, context.getBean(DragCommand.class));
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,48 +0,0 @@
|
|||||||
package cc.fascinated.bat.features.drag;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.Setter;
|
|
||||||
import net.dv8tion.jda.api.entities.Member;
|
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
|
||||||
import net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel;
|
|
||||||
import net.dv8tion.jda.api.interactions.InteractionHook;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Fascinated (fascinated7)
|
|
||||||
*/
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
@Getter @Setter
|
|
||||||
public class DragRequest {
|
|
||||||
/**
|
|
||||||
* The date the request was made
|
|
||||||
*/
|
|
||||||
private final Date requestDate = new Date();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The user that wants to join the voice channel
|
|
||||||
*/
|
|
||||||
private final Member member;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The user that the member wants to join
|
|
||||||
*/
|
|
||||||
private final Member target;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The voice channel the user wants to join
|
|
||||||
*/
|
|
||||||
private final VoiceChannel voiceChannel;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The interaction hook that the request was made from
|
|
||||||
*/
|
|
||||||
private final InteractionHook interactionHook;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The request message sent in the voice channel
|
|
||||||
*/
|
|
||||||
private Message requestMessage;
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
package cc.fascinated.bat.features.drag.command;
|
|
||||||
|
|
||||||
import cc.fascinated.bat.command.BatCommand;
|
|
||||||
import cc.fascinated.bat.command.Category;
|
|
||||||
import cc.fascinated.bat.command.CommandInfo;
|
|
||||||
import lombok.NonNull;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.ApplicationContext;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Fascinated (fascinated7)
|
|
||||||
*/
|
|
||||||
@Component
|
|
||||||
@CommandInfo(name = "drag", description = "Drag command", category = Category.GENERAL)
|
|
||||||
public class DragCommand extends BatCommand {
|
|
||||||
@Autowired
|
|
||||||
public DragCommand(@NonNull ApplicationContext context) {
|
|
||||||
super.addSubCommands(context.getBean(RequestSubCommand.class));
|
|
||||||
}
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user