public interface Application<CONFIG extends BaseConfiguration>
Modifier and Type | Method and Description |
---|---|
void |
after(CQCodeUtil cqCodeUtil,
MsgSender sender) |
default String |
author()
这个方法不需要重写了啦!
|
void |
before(CONFIG configuration)
启动之前的配置方法
|
default Class<?> |
getApplicationClass()
获取Application启动器的Class,默认情况下即获取自己的Class。
无特殊需求不要重写。
|
default Package |
getPackage()
获取启动器的包路径。默认情况下即获取当前类的包路径。
无特殊需求不要重写。
|
void before(CONFIG configuration)
configuration
- void after(CQCodeUtil cqCodeUtil, MsgSender sender)
cqCodeUtil
- cq码工具类sender
- 不再建议使用MsgSender。如果想要主动发送消息,请试着使用BotRuntime().getRuntime().getBotManager()
default Class<?> getApplicationClass()
default String author()
Copyright © 2020. All rights reserved.