why angry??????
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 38s

This commit is contained in:
Lee 2024-07-01 23:02:28 +01:00
parent 3146ed7d6d
commit 37c69597be
3 changed files with 7 additions and 1 deletions

@ -6,10 +6,12 @@ import cc.fascinated.bat.service.EventService;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import io.mongock.runner.springboot.EnableMongock;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import lombok.NonNull;
import lombok.SneakyThrows;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@ -18,6 +18,7 @@ import net.dv8tion.jda.api.hooks.ListenerAdapter;
import net.dv8tion.jda.api.interactions.commands.Command;
import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Service;
@ -47,7 +48,8 @@ public class CommandService extends ListenerAdapter {
private final UserService userService;
@Autowired
public CommandService(@NonNull GuildService guildService, @NonNull UserService userService) {
public CommandService(@NonNull ApplicationContext context, @NonNull GuildService guildService, @NonNull UserService userService) {
context.getBean(Config.class);
this.guildService = guildService;
this.userService = userService;
DiscordService.JDA.addEventListener(this);

@ -4,6 +4,8 @@ discord:
# Bat Configuration
bat:
# This is where commands will be registered (whilst in development mode)
# also where bot owner only commands will be registered
admin-guild: 1203163422498361404
# Sentry Configuration