From de6eabc1b7b8f40f2c510f82f547c4cebd072212 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 11:58:54 +0100 Subject: [PATCH] user install commands --- .../bat/features/base/commands/fun/EightBallCommand.java | 2 +- .../bat/features/base/commands/fun/image/ImageCommand.java | 2 +- .../bat/features/base/commands/general/BotStatsCommand.java | 2 +- .../bat/features/base/commands/general/PingCommand.java | 2 +- .../scoresaber/command/scoresaber/ScoreSaberCommand.java | 2 +- .../fascinated/bat/features/spotify/command/SpotifyCommand.java | 2 +- .../cc/fascinated/bat/features/tmdb/command/TMDBCommand.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/fun/EightBallCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/fun/EightBallCommand.java index 52ea3e8..a5460c5 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/fun/EightBallCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/fun/EightBallCommand.java @@ -17,7 +17,7 @@ import org.springframework.stereotype.Component; * @author Fascinated (fascinated7) */ @Component -@CommandInfo(name = "8ball", description = "Ask the magic 8ball a question") +@CommandInfo(name = "8ball", description = "Ask the magic 8ball a question", userInstall = true) public class EightBallCommand extends BatCommand { private final String[] responses = new String[]{ "It is certain", diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/fun/image/ImageCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/fun/image/ImageCommand.java index 8e421d3..b5fa921 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/fun/image/ImageCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/fun/image/ImageCommand.java @@ -12,7 +12,7 @@ import org.springframework.stereotype.Component; * @author Fascinated (fascinated7) */ @Component -@CommandInfo(name = "image", description = "View a random image", guildOnly = false, category = Category.FUN) +@CommandInfo(name = "image", description = "View a random image", guildOnly = false, userInstall = true, category = Category.FUN) public class ImageCommand extends BatCommand { @Autowired public ImageCommand(@NonNull ApplicationContext context) { diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/general/BotStatsCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/general/BotStatsCommand.java index 9e8a515..4f0d824 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/general/BotStatsCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/general/BotStatsCommand.java @@ -26,7 +26,7 @@ import java.lang.management.RuntimeMXBean; * @author Fascinated (fascinated7) */ @Component -@CommandInfo(name = "botstats", description = "Shows the bot statistics", guildOnly = false) +@CommandInfo(name = "botstats", description = "Shows the bot statistics", guildOnly = false, userInstall = true) public class BotStatsCommand extends BatCommand { private final GuildService guildService; private final UserService userService; diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/general/PingCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/general/PingCommand.java index 760ef35..52f4f5e 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/general/PingCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/general/PingCommand.java @@ -15,7 +15,7 @@ import org.springframework.stereotype.Component; * @author Fascinated (fascinated7) */ @Component -@CommandInfo(name = "ping", description = "Gets the ping of the bot", guildOnly = false) +@CommandInfo(name = "ping", description = "Gets the ping of the bot", guildOnly = false, userInstall = true) public class PingCommand extends BatCommand { @Override public void execute(BatGuild guild, @NonNull BatUser user, @NonNull MessageChannel channel, Member member, @NonNull SlashCommandInteraction event) { diff --git a/src/main/java/cc/fascinated/bat/features/scoresaber/command/scoresaber/ScoreSaberCommand.java b/src/main/java/cc/fascinated/bat/features/scoresaber/command/scoresaber/ScoreSaberCommand.java index e0adcf1..c3c4f1b 100644 --- a/src/main/java/cc/fascinated/bat/features/scoresaber/command/scoresaber/ScoreSaberCommand.java +++ b/src/main/java/cc/fascinated/bat/features/scoresaber/command/scoresaber/ScoreSaberCommand.java @@ -27,7 +27,7 @@ import java.time.LocalDateTime; * @author Fascinated (fascinated7) */ @Component -@CommandInfo(name = "scoresaber", description = "General ScoreSaber commands", guildOnly = false) +@CommandInfo(name = "scoresaber", description = "General ScoreSaber commands", guildOnly = false, userInstall = true) public class ScoreSaberCommand extends BatCommand { private final ScoreSaberService scoreSaberService; diff --git a/src/main/java/cc/fascinated/bat/features/spotify/command/SpotifyCommand.java b/src/main/java/cc/fascinated/bat/features/spotify/command/SpotifyCommand.java index 9b39f85..a22b0b1 100644 --- a/src/main/java/cc/fascinated/bat/features/spotify/command/SpotifyCommand.java +++ b/src/main/java/cc/fascinated/bat/features/spotify/command/SpotifyCommand.java @@ -12,7 +12,7 @@ import org.springframework.stereotype.Component; * @author Fascinated (fascinated7) */ @Component -@CommandInfo(name = "spotify", description = "Change your Spotify settings", guildOnly = false, category = Category.MUSIC) +@CommandInfo(name = "spotify", description = "Change your Spotify settings", guildOnly = false, userInstall = true, category = Category.MUSIC) public class SpotifyCommand extends BatCommand { @Autowired public SpotifyCommand(@NonNull ApplicationContext context) { diff --git a/src/main/java/cc/fascinated/bat/features/tmdb/command/TMDBCommand.java b/src/main/java/cc/fascinated/bat/features/tmdb/command/TMDBCommand.java index 45f2e0c..b10431a 100644 --- a/src/main/java/cc/fascinated/bat/features/tmdb/command/TMDBCommand.java +++ b/src/main/java/cc/fascinated/bat/features/tmdb/command/TMDBCommand.java @@ -11,7 +11,7 @@ import org.springframework.stereotype.Component; * @author Nick (okNick) */ @Component -@CommandInfo(name = "tmdb", description = "Get information about movies and TV shows", guildOnly = false) +@CommandInfo(name = "tmdb", description = "Get information about movies and TV shows", guildOnly = false, userInstall = true) public class TMDBCommand extends BatCommand { @Autowired public TMDBCommand(@NonNull ApplicationContext context) {