![]() |
VOOZH | about |
dotnet add package HoshikawaKaguya.Sora.Entities --version 2.0.5
NuGet\Install-Package HoshikawaKaguya.Sora.Entities -Version 2.0.5
<PackageReference Include="HoshikawaKaguya.Sora.Entities" Version="2.0.5" />
<PackageVersion Include="HoshikawaKaguya.Sora.Entities" Version="2.0.5" />Directory.Packages.props
<PackageReference Include="HoshikawaKaguya.Sora.Entities" />Project file
paket add HoshikawaKaguya.Sora.Entities --version 2.0.5
#r "nuget: HoshikawaKaguya.Sora.Entities, 2.0.5"
#:package HoshikawaKaguya.Sora.Entities@2.0.5
#addin nuget:?package=HoshikawaKaguya.Sora.Entities&version=2.0.5Install as a Cake Addin
#tool nuget:?package=HoshikawaKaguya.Sora.Entities&version=2.0.5Install as a Cake Tool
一个基于 C#/.NET 10 的多协议异步机器人开发框架
[CommandGroup] + [Command])dotnet add package HoshikawaKaguya.Sora
dotnet add package HoshikawaKaguya.Sora.Adapter.Milky # Milky 协议
dotnet add package HoshikawaKaguya.Sora.Adapter.OneBot11 # 或 OneBot v11 协议
using Sora;
using Sora.Adapter.Milky;
SoraService service = SoraServiceFactory.Instance.CreateMilkyService(
new MilkyConfig
{
Host = "localhost",
Port = 3010,
AccessToken = "your-token"
});
service.Events.OnMessageReceived += async e =>
{
if (e.Message.Body.GetText() == "ping")
await e.Api.SendGroupMessageAsync(e.Message.GroupId, new MessageBody("pong"));
};
await service.StartAsync();
await Task.Delay(-1);
| 包 | 说明 |
|---|---|
HoshikawaKaguya.Sora |
框架应用层 |
HoshikawaKaguya.Sora.Entities |
共享实体 — 事件、消息段、API 接口 |
HoshikawaKaguya.Sora.Core |
核心工具库 |
HoshikawaKaguya.Sora.Command |
属性指令路由 |
HoshikawaKaguya.Sora.Adapter.Milky |
Milky 协议适配器 |
HoshikawaKaguya.Sora.Adapter.OneBot11 |
OneBot v11 协议适配器 |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on HoshikawaKaguya.Sora.Entities:
| Package | Downloads |
|---|---|
|
HoshikawaKaguya.Sora.Command
Sora 机器人框架 - 属性指令路由 |
|
|
HoshikawaKaguya.Sora
.NET 10 多协议异步机器人开发框架 |
This package is not used by any popular GitHub repositories.