Prepare for multi guild support
This commit is contained in:
parent
7f4e16ced9
commit
2cdf390c36
@ -63,10 +63,9 @@ public class Init {
|
||||
|
||||
|
||||
//On recupere le l'id serveur
|
||||
Guild serveur = jda.getGuilds().get(0);
|
||||
|
||||
for( Guild server : jda.getGuilds()){
|
||||
//on recupere les utilisateur
|
||||
List<Member> utilisateurCo = serveur.getMembers();
|
||||
List<Member> utilisateurCo = server.getMembers();
|
||||
|
||||
logger.info("Online users: "+utilisateurCo.size());
|
||||
for (Member anUtilisateurCo : utilisateurCo)
|
||||
@ -88,6 +87,10 @@ public class Init {
|
||||
if (anUtilisateurCo.getOnlineStatus().equals(OnlineStatus.OFFLINE))
|
||||
logger.debug("\t*" + anUtilisateurCo.getEffectiveName());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
DayListener dayListener = DayListener.getInstance();
|
||||
|
Loading…
Reference in New Issue
Block a user