DiscordManager 0.0.2
Suggested Alternatives
Additional Details
renaming my packages!
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 DiscordManager --version 0.0.2
NuGet\Install-Package DiscordManager -Version 0.0.2
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="DiscordManager" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DiscordManager --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DiscordManager, 0.0.2"
#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.
// Install DiscordManager as a Cake Addin #addin nuget:?package=DiscordManager&version=0.0.2 // Install DiscordManager as a Cake Tool #tool nuget:?package=DiscordManager&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DiscordManager
해당 DiscordManager 는 C#으로 디스코드 봇을 처음 만들어보는 "초심자"를 위해 만들어졌습니다. 현재 여러 편의 기능들을 구현중에 있습니다.
아직 Alpha 버전으로서 Document가 작성되지 않은 곳이 있을 수 있습니다.
기본 사용법
class Program {
static void Main() {
var discordManager = DiscordBuilder
.SocketBuilder // 샤드용 ShardBuilder 도 있습니다.
.WithActivity(new Game("Live For Test"))
.WithLogLevel(LogLevel.ALL)
.WithCommandModule() // 만약 DiscordManager가 제공하는 명령어모듈을 사용하고 싶다면 해당 메소드를 사용해주세요.
.Build();
discordManager.Log += Log;
discordManager.Run("Bot Token");
}
public static Task Log(LogObject logObject) {
Console.WriteLine(logObject.ToString());
return Task.CompletedTask;
}
}
명령어모듈
public class Test: CommandModule {
[CommandName("Test")]
public void TestMethod() {
_ = Reply("Test");
}
}
Builder에서 WithCommandModule을 사용해주시고 명령어 메소드들이 있을 클래스를 생성합니다. 이때 해당 클래스는 CommandModule을 무조건 상속받아야합니다. DiscordManager의 명령어 시스템이 자동으로 명령어들을 찾기 위함이며 명령어 시스템은 CommandModule에 있는 public 접근제어자를 가진 메소드만 명령어 메소드로 인식합니다. 이때 명령어 메소드는 명령어이름이 필요하기때문에 CommandName이 필요합니다. 만약 로딩 중에 명령어 메소드에 CommandName 없다면 오류를 발생합니다.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Discord.Net (>= 2.2.0)
- Discord.Net.Core (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.2.3-dev-210608 | 368 | 6/8/2021 | |
0.2.2 | 689 | 6/7/2021 | |
0.2.1-dev-20210403 | 372 | 4/3/2021 | |
0.2.1-dev-20210402 | 389 | 4/2/2021 | |
0.2.1-dev-20210401 | 388 | 3/31/2021 | |
0.2.0 | 484 | 3/30/2021 | |
0.2.0-dev-20210330-2 | 366 | 3/30/2021 | |
0.2.0-dev-20210330-1 | 377 | 3/30/2021 | |
0.2.0-dev-20210330 | 375 | 3/30/2021 | |
0.2.0-dev-20210325 | 405 | 3/25/2021 | |
0.2.0-dev-20210305 | 381 | 3/5/2021 | |
0.2.0-dev-20210227 | 351 | 2/27/2021 | |
0.2.0-dev-20210223-2 | 356 | 2/23/2021 | |
0.2.0-dev-20210223-1 | 407 | 2/23/2021 | |
0.2.0-dev-20210223 | 412 | 2/23/2021 | |
0.2.0-dev-20210222 | 397 | 2/21/2021 | |
0.2.0-dev-20210118 | 417 | 1/18/2021 | |
0.2.0-dev-20210117V4 | 424 | 1/17/2021 | |
0.2.0-dev-20210117V3 | 421 | 1/17/2021 | |
0.2.0-dev-20210117V2 | 436 | 1/17/2021 | |
0.2.0-dev-20210117 | 438 | 1/17/2021 | |
0.2.0-dev-20201011 | 484 | 10/11/2020 | |
0.2.0-dev-20201009 | 469 | 10/8/2020 | |
0.2.0-dev-20201004 | 483 | 10/4/2020 | |
0.1.9 | 617 | 9/29/2020 | |
0.1.9-dev | 540 | 9/26/2020 | |
0.1.8 | 610 | 9/22/2020 | |
0.1.7 | 607 | 9/22/2020 | |
0.1.7-dev | 468 | 9/16/2020 | |
0.1.6 | 660 | 9/2/2020 | |
0.1.6-dev | 487 | 8/27/2020 | |
0.1.5 | 616 | 8/20/2020 | |
0.1.5-dev | 453 | 8/20/2020 | |
0.1.4 | 633 | 8/17/2020 | |
0.1.3 | 693 | 8/15/2020 | |
0.1.2 | 642 | 7/22/2020 | |
0.1.1 | 621 | 7/22/2020 | |
0.1.0 | 604 | 7/22/2020 | |
0.0.9 | 639 | 7/22/2020 | |
0.0.8 | 668 | 7/22/2020 | |
0.0.7 | 611 | 7/22/2020 | |
0.0.6 | 653 | 7/21/2020 | |
0.0.5 | 604 | 7/21/2020 | |
0.0.4 | 607 | 7/20/2020 | |
0.0.3 | 616 | 7/20/2020 | |
0.0.2 | 967 | 6/24/2020 |