DiscordManager 0.1.7-dev

Suggested Alternatives

DiscordCreator 0.2.3

Additional Details

renaming my packages!

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

// Install DiscordManager as a Cake Tool
#tool nuget:?package=DiscordManager&version=0.1.7-dev&prerelease                

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 364 6/8/2021 0.2.3-dev-210608 is deprecated because it is no longer maintained.
0.2.2 683 6/7/2021 0.2.2 is deprecated because it is no longer maintained.
0.2.1-dev-20210403 370 4/3/2021 0.2.1-dev-20210403 is deprecated because it is no longer maintained.
0.2.1-dev-20210402 387 4/2/2021 0.2.1-dev-20210402 is deprecated because it is no longer maintained.
0.2.1-dev-20210401 386 3/31/2021 0.2.1-dev-20210401 is deprecated because it is no longer maintained.
0.2.0 480 3/30/2021 0.2.0 is deprecated because it is no longer maintained.
0.2.0-dev-20210330-2 364 3/30/2021 0.2.0-dev-20210330-2 is deprecated because it is no longer maintained.
0.2.0-dev-20210330-1 375 3/30/2021 0.2.0-dev-20210330-1 is deprecated because it is no longer maintained.
0.2.0-dev-20210330 373 3/30/2021 0.2.0-dev-20210330 is deprecated because it is no longer maintained.
0.2.0-dev-20210325 403 3/25/2021 0.2.0-dev-20210325 is deprecated because it is no longer maintained.
0.2.0-dev-20210305 379 3/5/2021 0.2.0-dev-20210305 is deprecated because it is no longer maintained.
0.2.0-dev-20210227 349 2/27/2021 0.2.0-dev-20210227 is deprecated because it is no longer maintained.
0.2.0-dev-20210223-2 354 2/23/2021 0.2.0-dev-20210223-2 is deprecated because it is no longer maintained.
0.2.0-dev-20210223-1 405 2/23/2021 0.2.0-dev-20210223-1 is deprecated because it is no longer maintained.
0.2.0-dev-20210223 410 2/23/2021 0.2.0-dev-20210223 is deprecated because it is no longer maintained.
0.2.0-dev-20210222 395 2/21/2021 0.2.0-dev-20210222 is deprecated because it is no longer maintained.
0.2.0-dev-20210118 415 1/18/2021 0.2.0-dev-20210118 is deprecated because it is no longer maintained.
0.2.0-dev-20210117V4 422 1/17/2021 0.2.0-dev-20210117V4 is deprecated because it is no longer maintained.
0.2.0-dev-20210117V3 419 1/17/2021 0.2.0-dev-20210117V3 is deprecated because it is no longer maintained.
0.2.0-dev-20210117V2 434 1/17/2021 0.2.0-dev-20210117V2 is deprecated because it is no longer maintained.
0.2.0-dev-20210117 436 1/17/2021 0.2.0-dev-20210117 is deprecated because it is no longer maintained.
0.2.0-dev-20201011 482 10/11/2020 0.2.0-dev-20201011 is deprecated because it is no longer maintained.
0.2.0-dev-20201009 467 10/8/2020 0.2.0-dev-20201009 is deprecated because it is no longer maintained.
0.2.0-dev-20201004 475 10/4/2020 0.2.0-dev-20201004 is deprecated because it is no longer maintained.
0.1.9 613 9/29/2020 0.1.9 is deprecated because it is no longer maintained.
0.1.9-dev 538 9/26/2020 0.1.9-dev is deprecated because it is no longer maintained.
0.1.8 606 9/22/2020 0.1.8 is deprecated because it is no longer maintained.
0.1.7 603 9/22/2020 0.1.7 is deprecated because it is no longer maintained.
0.1.7-dev 466 9/16/2020 0.1.7-dev is deprecated because it is no longer maintained.
0.1.6 656 9/2/2020 0.1.6 is deprecated because it is no longer maintained.
0.1.6-dev 485 8/27/2020 0.1.6-dev is deprecated because it is no longer maintained.
0.1.5 612 8/20/2020 0.1.5 is deprecated because it is no longer maintained.
0.1.5-dev 451 8/20/2020 0.1.5-dev is deprecated because it is no longer maintained.
0.1.4 629 8/17/2020 0.1.4 is deprecated because it is no longer maintained.
0.1.3 689 8/15/2020 0.1.3 is deprecated because it is no longer maintained.
0.1.2 638 7/22/2020 0.1.2 is deprecated because it is no longer maintained.
0.1.1 617 7/22/2020 0.1.1 is deprecated because it is no longer maintained.
0.1.0 600 7/22/2020 0.1.0 is deprecated because it is no longer maintained.
0.0.9 635 7/22/2020 0.0.9 is deprecated because it is no longer maintained.
0.0.8 664 7/22/2020 0.0.8 is deprecated because it is no longer maintained.
0.0.7 607 7/22/2020 0.0.7 is deprecated because it is no longer maintained.
0.0.6 650 7/21/2020 0.0.6 is deprecated because it is no longer maintained.
0.0.5 600 7/21/2020 0.0.5 is deprecated because it is no longer maintained.
0.0.4 602 7/20/2020 0.0.4 is deprecated because it is no longer maintained.
0.0.3 612 7/20/2020 0.0.3 is deprecated because it is no longer maintained.
0.0.2 963 6/24/2020 0.0.2 is deprecated because it is no longer maintained.