remove some debug and fix depends on for scoresaber service
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m4s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m4s
This commit is contained in:
@ -63,7 +63,6 @@ public class UserService implements EventListener {
|
||||
if (document != null) {
|
||||
BatUser batUser = new BatUser(id, user, document);
|
||||
users.put(id, batUser);
|
||||
// log.info("Loaded user \"{}\" in {}ms", batUser.getName(),System.currentTimeMillis() - before);
|
||||
return batUser;
|
||||
}
|
||||
// New user
|
||||
@ -82,11 +81,9 @@ public class UserService implements EventListener {
|
||||
public BatUser getUser(@NonNull String id) {
|
||||
User user = DiscordService.JDA.getUserById(id);
|
||||
if (user == null) {
|
||||
log.warn("Attempted to get user with ID \"{}\" but they do not exist", id);
|
||||
return null;
|
||||
}
|
||||
if (user.isBot()) {
|
||||
log.warn("Attempted to get user with ID \"{}\" but they are a bot", id);
|
||||
return null;
|
||||
}
|
||||
return getUser(id, null);
|
||||
|
Reference in New Issue
Block a user