ctw.BotCore
1.0.0.2
See the version list below for details.
dotnet add package ctw.BotCore --version 1.0.0.2
NuGet\Install-Package ctw.BotCore -Version 1.0.0.2
<PackageReference Include="ctw.BotCore" Version="1.0.0.2" />
paket add ctw.BotCore --version 1.0.0.2
#r "nuget: ctw.BotCore, 1.0.0.2"
// Install ctw.BotCore as a Cake Addin #addin nuget:?package=ctw.BotCore&version=1.0.0.2 // Install ctw.BotCore as a Cake Tool #tool nuget:?package=ctw.BotCore&version=1.0.0.2
BotBase
Bot Base is a basic wrapper / framework for DSharp+ https://github.com/DSharpPlus/DSharpPlus
This project was created as a base for getting started, and has no affiliation with DShap+.
Configuration
Rename config.json.example to config.json, set token to your bot token and prefix as the required bot prefix.
SQL Support
Add the following to enable MySql Support
"sql":
{
"host": "127.0.0.1",
"user": "bots_user",
"pass": "bots_password",
"name": "bots_database"
}
Creating your own modules
Copy and rename the Examle.Module project in ./Example
Rename the project to be YOURMODLE.Module and apply the change to the Namespace
Rename Example.cs to your required class name.
Update Name, Description and Version as requiruired
In ./Commands create a new class (Eg FunCommands.CS)
Import the following
using System.Threading.Tasks;
using DSharpPlus;
using DSharpPlus.CommandsNext;
using DSharpPlus.CommandsNext.Attributes;
using Microsoft.Extensions.Logging;
Your new class needs to extend BaseCommandModule.
You can now create your own commands in this class!
To learn how to make commands and use DShap+ please check out their repo for the latest
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.1 is compatible. |
-
.NETCoreApp 3.1
- ctw.BotLogger (>= 1.0.0)
- ctw.BotShared (>= 1.0.3)
- DSharpPlus (>= 4.0.0-nightly-00703)
- DSharpPlus.CommandsNext (>= 4.0.0-nightly-00703)
- DSharpPlus.Interactivity (>= 4.0.0-nightly-00703)
- Microsoft.Extensions.Logging (>= 1.1.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 | |
---|---|---|---|
1.0.3.8-beta | 869 | 6/12/2021 | |
1.0.3.7-beta | 802 | 6/5/2021 | |
1.0.3.6-beta | 746 | 6/4/2021 | |
1.0.3.5-beta | 751 | 6/4/2021 | |
1.0.3.4-beta | 770 | 6/3/2021 | |
1.0.3.2 | 860 | 6/1/2021 | |
1.0.3.1 | 858 | 6/1/2021 | |
1.0.3 | 912 | 5/31/2021 | |
1.0.2.1 | 986 | 12/30/2020 | |
1.0.2 | 907 | 12/30/2020 | |
1.0.1 | 1,102 | 8/26/2020 | |
1.0.0.8 | 1,042 | 8/25/2020 | |
1.0.0.7 | 1,006 | 8/25/2020 | |
1.0.0.6 | 1,092 | 8/2/2020 | |
1.0.0.5 | 1,515 | 8/2/2020 | |
1.0.0.3 | 1,053 | 7/26/2020 | |
1.0.0.2 | 1,033 | 6/29/2020 | |
1.0.0.1 | 1,096 | 6/21/2020 |