Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtest_bot_all.java
More file actions
Latest commit
26 lines (23 loc) · 740 Bytes
/
Copy pathtest_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
importio.github.kloping.qqbot.Starter;
importio.github.kloping.qqbot.entities.Bot;
importio.github.kloping.qqbot.entities.qqpd.Guild;
importio.github.kloping.qqbot.entities.qqpd.User;
importjava.util.ArrayList;
importjava.util.List;
/**
* @author github.kloping
*/
publicclasstest_bot_all {
publicstaticvoidmain(String[] args) throwsException {
Starterstarter = test_main.factory();
starter.run();
Botbot = starter.getBot();
//获取 bot 下所有 频道
List<Guild> guilds = newArrayList<>(bot.guilds());
Guildguild = null;
//获得 子频道下 所有 子频道
guild.channels();
//获得bot信息
Useruser = bot.getInfo();
}
}