You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.
Skype skype = new Skype("bot", "xxx");
skype.connect();
System.out.println("Bot is connected");
List groups = skype.getGroups();
// I have 2 groups
System.out.println(groups.size());
for (Group group : groups) {
List<Pair<User, Role>> usersWithRoles = group.getUsersWithRoles();
System.out.println(usersWithRoles.size());
List users = group.getUsers();
System.out.println(users.size());
}
System.out.println("Bot is disconnected");
output is:
Bot is connected
2
0
0
0
0
Bot is disconnected
The text was updated successfully, but these errors were encountered:
Please send me the debug logs for an example session of this happening. For example, run the following program:
Skypeskype = newSkype("bot", "xxx");
Skype.setDebug(Paths.get("logfile.txt")); // notice the setDebug call to produce a log fileskype.connect();
System.out.println("Bot is connected");
List<Group> groups = skype.getGroups();
// I have 2 groupsSystem.out.println("count of groups: "+groups.size());
System.out.println("printing the groups user count...");
for (Groupgroup : groups) {
List<Pair<User, Role>> usersWithRoles = group.getUsersWithRoles();
System.out.println(usersWithRoles.size());
List<User> users = group.getUsers();
System.out.println(users.size());
}
System.out.println("changing the groups topic...");
for (Groupgroup : groups) {
group.changeTopic("dummy test topic");
}
System.out.println("printing the new groups user count...");
for (Groupgroup : groups) {
List<Pair<User, Role>> usersWithRoles = group.getUsersWithRoles();
System.out.println(usersWithRoles.size());
List<User> users = group.getUsers();
System.out.println(users.size());
}
System.out.println("Bot is disconnected");
It will produce a logfile.txt file which you can then send me so that I can investigate the issue. Thanks.
@delthas First run result:
Bot is connected
count of groups: 3
printing the groups user count...
4
4
0
0
0
0
changing the groups topic...
printing the new groups user count...
4
4
0
0
0
0
Bot is disconnected
Logs: https://pastebin.com/kFyq9rdx
Seconds run result:
Bot is connected
count of groups: 3
printing the groups user count...
4
4
3
3
3
3
changing the groups topic...
printing the new groups user count...
4
4
3
3
3
3
Bot is disconnected
Logs: https://pastebin.com/vE47HYYC
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I think code will explain everything.
Skype skype = new Skype("bot", "xxx");
skype.connect();
System.out.println("Bot is connected");
List groups = skype.getGroups();
// I have 2 groups
System.out.println(groups.size());
for (Group group : groups) {
List<Pair<User, Role>> usersWithRoles = group.getUsersWithRoles();
System.out.println(usersWithRoles.size());
List users = group.getUsers();
System.out.println(users.size());
}
System.out.println("Bot is disconnected");
output is:
Bot is connected
2
0
0
0
0
Bot is disconnected
The text was updated successfully, but these errors were encountered: