DiscordManager 0.1.6

Suggested Alternatives

DiscordCreator 0.2.3

Additional Details

renaming my packages!

There is a newer version of this package available.
See the version list below for details.
dotnet add package DiscordManager --version 0.1.6
NuGet\Install-Package DiscordManager -Version 0.1.6
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.1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DiscordManager --version 0.1.6
#r "nuget: DiscordManager, 0.1.6"
#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.1.6

// Install DiscordManager as a Cake Tool
#tool nuget:?package=DiscordManager&version=0.1.6

DiscordManager

해당 DiscordManager 는 C#으로 디스코드 봇을 처음 만들어보는 "초심자"를 위해 만들어졌습니다. 현재 여러 편의 기능들을 구현중에 있습니다.

아직 Alpha 버전으로서 Document가 작성되지 않은 곳이 있을 수 있습니다.

해당 라이브러리는 Github Package 를 사용합니다. 해당 라이브러리는 Nuget을 사용합니다.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 325 6/8/2021
0.2.2 579 6/7/2021
0.2.1-dev-20210403 340 4/3/2021
0.2.1-dev-20210402 349 4/2/2021
0.2.1-dev-20210401 360 3/31/2021
0.2.0 441 3/30/2021
0.2.0-dev-20210330-2 336 3/30/2021
0.2.0-dev-20210330-1 340 3/30/2021
0.2.0-dev-20210330 340 3/30/2021
0.2.0-dev-20210325 378 3/25/2021
0.2.0-dev-20210305 348 3/5/2021
0.2.0-dev-20210227 323 2/27/2021
0.2.0-dev-20210223-2 324 2/23/2021
0.2.0-dev-20210223-1 372 2/23/2021
0.2.0-dev-20210223 360 2/23/2021
0.2.0-dev-20210222 364 2/21/2021
0.2.0-dev-20210118 383 1/18/2021
0.2.0-dev-20210117V4 391 1/17/2021
0.2.0-dev-20210117V3 394 1/17/2021
0.2.0-dev-20210117V2 397 1/17/2021
0.2.0-dev-20210117 407 1/17/2021
0.2.0-dev-20201011 445 10/11/2020
0.2.0-dev-20201009 452 10/8/2020
0.2.0-dev-20201004 431 10/4/2020
0.1.9 576 9/29/2020
0.1.9-dev 503 9/26/2020
0.1.8 567 9/22/2020
0.1.7 571 9/22/2020
0.1.7-dev 436 9/16/2020
0.1.6 621 9/2/2020
0.1.6-dev 452 8/27/2020
0.1.5 574 8/20/2020
0.1.5-dev 418 8/20/2020
0.1.4 591 8/17/2020
0.1.3 654 8/15/2020
0.1.2 598 7/22/2020
0.1.1 578 7/22/2020
0.1.0 573 7/22/2020
0.0.9 600 7/22/2020
0.0.8 615 7/22/2020
0.0.7 579 7/22/2020
0.0.6 605 7/21/2020
0.0.5 579 7/21/2020
0.0.4 567 7/20/2020
0.0.3 569 7/20/2020
0.0.2 912 6/24/2020