Add more shortcuts

This commit is contained in:
Him188 2020-01-01 20:30:35 +08:00
parent 77dce11e96
commit 1c316a7ee3

View File

@ -27,6 +27,12 @@ internal val factory: BotFactory = run {
fun Bot(account: BotAccount, configuration: BotConfiguration = BotConfiguration.Default): Bot =
factory.Bot(account, configuration)
/**
* 加载现有协议的 [BotFactory], 并使用指定的 [配置][configuration] 构造 [Bot] 实例
*/
fun Bot(qq: Long, password: String, configuration: BotConfiguration = BotConfiguration.Default): Bot =
factory.Bot(qq, password, configuration)
/**
* 加载现有协议的 [BotFactory], 并使用指定的 [配置][configuration] 构造 [Bot] 实例
*/