simple-robot / simbot-component-onebot

一个Kotlin多平台的 OneBot SDK 实现,一个异步高效、Java 友好的 Simple Robot 组件库 ~ 🐱🐱🐱
https://simbot.forte.love/component-onebot.html
GNU Lesser General Public License v3.0
10 stars 3 forks source link

为 OneBotBot 追加实现 OneBotApiExecutable ,提供通过 `execute*` 直接执行 API 的能力 #74

Closed ForliyScarlet closed 3 months ago

ForliyScarlet commented 3 months ago
val bot = ...
val api = ...

bot.execute(api)
bot.executeRaw(api)
bot.executeResult(api)
bot.executeData(api)

bot.inExecutableScope {
  api.execute()
  api.executeRaw()
  api.executeResult()
  api.executeData()
}
github-actions[bot] commented 3 months ago

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked ☁️ View the detailed Qodana report

Contact Qodana team Contact us at [qodana-support@jetbrains.com](mailto:qodana-support@jetbrains.com) - Or via our issue tracker: https://jb.gg/qodana-issue - Or share your feedback: https://jb.gg/qodana-discussions