Masuda.Net
1.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Masuda.Net --version 1.1.0
NuGet\Install-Package Masuda.Net -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Masuda.Net" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Masuda.Net" Version="1.1.0" />
<PackageReference Include="Masuda.Net" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Masuda.Net --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Masuda.Net, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Masuda.Net@1.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Masuda.Net&version=1.1.0
#tool nuget:?package=Masuda.Net&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
QQ频道机器人官方接口(C#)
实现了一个简易的C#的接口封装,由于目前消息权限卡的很死,需要配置语料才能发送,请注意。
- 个人开发者需要用ReplyMessageAsync以回复的方式发送消息,回复的消息目前必须与语料配置完全一致才能发出去(tx你在干什么啊tx)。
- appid是int类型,appkey,token是string类型,目前appkey不是必须要的值可以随意填入。其他两个按自己的bot信息填入。
- 未来接口可能还会有比较大的改动,请注意。
- 有疑问欢迎提出issue或联系QQ1078995020
说明
目前本项目依赖于.NET6,未来可能考虑加入之前版本的包。
本项目力图提供极简风格的api,以实现尽可能少的代码完成bot配置,可参考以下例子。
由于目前很多接口由于过于严格的审核机制导致测试起来很麻烦,目前关于消息方面仅提供简单的文字回复接口,未来测试完毕后会更新。
例子
以下为回复一条消息的简单实现
using Masuda.Net;
MasudaBot MasudaBot
= new(appid, appkey, token);
// 配置回复事件模板
MasudaBot.AtMessageAction += async (bot, msg, type) =>
{
// 回复时触发的函数
await bot.ReplyMessageAsync(msg, "muda");
};
// 阻塞程序,可以用其他任何方法
while (true)
{
await Task.Delay(10000);
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Masuda.Net:
| Repository | Stars |
|---|---|
|
CnGal/CnGalWebSite
CnGal是一个非营利性的,立志于收集整理国内制作组创作的中文Galgame/AVG的介绍、攻略、评测、感想等内容的资料性质的网站。
|
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.13 | 1,284 | 10/20/2022 |
| 6.0.12 | 518 | 7/1/2022 |
| 6.0.11 | 524 | 6/29/2022 |
| 6.0.10 | 434 | 12/28/2021 |
| 6.0.9 | 380 | 12/24/2021 |
| 6.0.9-preview1.0 | 232 | 12/22/2021 |
| 6.0.8 | 386 | 12/20/2021 |
| 6.0.7 | 431 | 12/19/2021 |
| 6.0.6 | 405 | 12/18/2021 |
| 6.0.5 | 370 | 12/17/2021 |
| 6.0.4 | 394 | 12/16/2021 |
| 6.0.2 | 397 | 12/16/2021 |
| 6.0.0 | 423 | 12/15/2021 |
| 5.0.10 | 413 | 12/28/2021 |
| 5.0.9 | 380 | 12/24/2021 |
| 5.0.9-preview1.0 | 233 | 12/22/2021 |
| 5.0.8 | 372 | 12/20/2021 |
| 5.0.7 | 408 | 12/19/2021 |
| 5.0.6 | 400 | 12/18/2021 |
| 5.0.5 | 399 | 12/17/2021 |
| 5.0.4 | 399 | 12/16/2021 |
| 5.0.2 | 407 | 12/16/2021 |
| 5.0.0 | 416 | 12/15/2021 |
| 4.7.3.10 | 411 | 12/28/2021 |
| 4.7.3 | 403 | 12/20/2021 |
| 1.2.1 | 378 | 12/14/2021 |
| 1.2.0 | 408 | 12/14/2021 |
| 1.1.1 | 373 | 12/14/2021 |
| 1.1.0 | 546 | 12/13/2021 |
| 1.0.2 | 407 | 12/12/2021 |
| 1.0.1 | 381 | 12/12/2021 |
| 1.0.0 | 412 | 12/12/2021 |