mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 22:30:47 +08:00
Add more shortcuts
This commit is contained in:
parent
77dce11e96
commit
1c316a7ee3
@ -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] 实例
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user