DiscordManager 0.1.6
renaming my packages!
See the version list below for details.
dotnet add package DiscordManager --version 0.1.6
NuGet\Install-Package DiscordManager -Version 0.1.6
<PackageReference Include="DiscordManager" Version="0.1.6" />
paket add DiscordManager --version 0.1.6
#r "nuget: DiscordManager, 0.1.6"
// Install DiscordManager as a Cake Addin #addin nuget:?package=DiscordManager&version=0.1.6 // Install DiscordManager as a Cake Tool #tool nuget:?package=DiscordManager&version=0.1.6
DiscordManager
해당 DiscordManager 는 C#으로 디스코드 봇을 처음 만들어보는 "초심자"를 위해 만들어졌습니다. 현재 여러 편의 기능들을 구현중에 있습니다.
아직 Alpha 버전으로서 Document가 작성되지 않은 곳이 있을 수 있습니다.
해당 라이브러리는 Github Package 를 사용합니다.
해당 라이브러리는 Nuget을 사용합니다.
Designed as a motive of Addons.Interactive
기본 사용법
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. |
.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. |
-
.NETStandard 2.1
- Discord.Net (>= 2.2.0)
- Discord.Net.Core (>= 2.2.0)
- Nett (>= 0.15.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 | 362 | 6/8/2021 | |
0.2.2 | 675 | 6/7/2021 | |
0.2.1-dev-20210403 | 368 | 4/3/2021 | |
0.2.1-dev-20210402 | 385 | 4/2/2021 | |
0.2.1-dev-20210401 | 382 | 3/31/2021 | |
0.2.0 | 476 | 3/30/2021 | |
0.2.0-dev-20210330-2 | 362 | 3/30/2021 | |
0.2.0-dev-20210330-1 | 371 | 3/30/2021 | |
0.2.0-dev-20210330 | 370 | 3/30/2021 | |
0.2.0-dev-20210325 | 401 | 3/25/2021 | |
0.2.0-dev-20210305 | 377 | 3/5/2021 | |
0.2.0-dev-20210227 | 347 | 2/27/2021 | |
0.2.0-dev-20210223-2 | 350 | 2/23/2021 | |
0.2.0-dev-20210223-1 | 401 | 2/23/2021 | |
0.2.0-dev-20210223 | 408 | 2/23/2021 | |
0.2.0-dev-20210222 | 393 | 2/21/2021 | |
0.2.0-dev-20210118 | 413 | 1/18/2021 | |
0.2.0-dev-20210117V4 | 420 | 1/17/2021 | |
0.2.0-dev-20210117V3 | 417 | 1/17/2021 | |
0.2.0-dev-20210117V2 | 432 | 1/17/2021 | |
0.2.0-dev-20210117 | 434 | 1/17/2021 | |
0.2.0-dev-20201011 | 480 | 10/11/2020 | |
0.2.0-dev-20201009 | 465 | 10/8/2020 | |
0.2.0-dev-20201004 | 473 | 10/4/2020 | |
0.1.9 | 608 | 9/29/2020 | |
0.1.9-dev | 534 | 9/26/2020 | |
0.1.8 | 602 | 9/22/2020 | |
0.1.7 | 598 | 9/22/2020 | |
0.1.7-dev | 464 | 9/16/2020 | |
0.1.6 | 651 | 9/2/2020 | |
0.1.6-dev | 483 | 8/27/2020 | |
0.1.5 | 608 | 8/20/2020 | |
0.1.5-dev | 447 | 8/20/2020 | |
0.1.4 | 624 | 8/17/2020 | |
0.1.3 | 684 | 8/15/2020 | |
0.1.2 | 634 | 7/22/2020 | |
0.1.1 | 613 | 7/22/2020 | |
0.1.0 | 595 | 7/22/2020 | |
0.0.9 | 631 | 7/22/2020 | |
0.0.8 | 659 | 7/22/2020 | |
0.0.7 | 602 | 7/22/2020 | |
0.0.6 | 645 | 7/21/2020 | |
0.0.5 | 594 | 7/21/2020 | |
0.0.4 | 597 | 7/20/2020 | |
0.0.3 | 607 | 7/20/2020 | |
0.0.2 | 959 | 6/24/2020 |