-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtest_bot_all.java
More file actions
26 lines (23 loc) · 740 Bytes
/
test_bot_all.java
File metadata and controls
26 lines (23 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import io.github.kloping.qqbot.Starter;
import io.github.kloping.qqbot.entities.Bot;
import io.github.kloping.qqbot.entities.qqpd.Guild;
import io.github.kloping.qqbot.entities.qqpd.User;
import java.util.ArrayList;
import java.util.List;
/**
* @author github.kloping
*/
public class test_bot_all {
public static void main(String[] args) throws Exception {
Starter starter = test_main.factory();
starter.run();
Bot bot = starter.getBot();
//获取 bot 下所有 频道
List<Guild> guilds = new ArrayList<>(bot.guilds());
Guild guild = null;
//获得 子频道下 所有 子频道
guild.channels();
//获得bot信息
User user = bot.getInfo();
}
}