Commit 1c316a7e authored by Him188's avatar Him188

Add more shortcuts

parent 77dce11e
...@@ -27,6 +27,12 @@ internal val factory: BotFactory = run { ...@@ -27,6 +27,12 @@ internal val factory: BotFactory = run {
fun Bot(account: BotAccount, configuration: BotConfiguration = BotConfiguration.Default): Bot = fun Bot(account: BotAccount, configuration: BotConfiguration = BotConfiguration.Default): Bot =
factory.Bot(account, configuration) 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] 实例 * 加载现有协议的 [BotFactory], 并使用指定的 [配置][configuration] 构造 [Bot] 实例
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment