Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[All] add support for custom BotAppInfo #687

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

Wesley-Young
Copy link
Contributor

@Wesley-Young Wesley-Young commented Nov 17, 2024

提供对自定义 BotAppInfo 的支持。具体更改如下:

  • 在 Lagrange.Core 的 BotFactory 类中增加了两个包含 BotAppInfo 的静态方法;
  • 在 Lagrange.OneBot 的初始化逻辑中增加了预生成和储存 appinfo.json 的逻辑。若存在,则解析之,并将其中的 BotAppInfo 用于 BotContext 的初始化。

对原有的 API 及功能无影响。

@Wesley-Young Wesley-Young requested a review from ishkong November 17, 2024 10:24
Copy link
Collaborator

@ishkong ishkong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他说it works on his machine

Copy link
Collaborator

@Executor-Cheng Executor-Cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没毛病, 感谢贡献

@Linwenxuan04 Linwenxuan04 merged commit ad18e88 into LagrangeDev:master Nov 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants