![]() |
VOOZH | about |
dotnet add package ctw.BotCore --version 1.0.3.2
NuGet\Install-Package ctw.BotCore -Version 1.0.3.2
<PackageReference Include="ctw.BotCore" Version="1.0.3.2" />
<PackageVersion Include="ctw.BotCore" Version="1.0.3.2" />Directory.Packages.props
<PackageReference Include="ctw.BotCore" />Project file
paket add ctw.BotCore --version 1.0.3.2
#r "nuget: ctw.BotCore, 1.0.3.2"
#:package ctw.BotCore@1.0.3.2
#addin nuget:?package=ctw.BotCore&version=1.0.3.2Install as a Cake Addin
#tool nuget:?package=ctw.BotCore&version=1.0.3.2Install as a Cake Tool
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+.
Rename config.json.example to config.json, set token to your bot token and prefix as the required bot prefix.
You can now also toggle settings related to disabling Default Help and enable/disable DMs
{
"token": "{{DISCORD_TOKEN}}",
"prefix": "!",
"enableDms": true,
"enableMentionPrefix": false,
"dmHelp": false,
"enableDefaultHelp": false
}
Add the following to enable MySql Support
"sql":
{
"host": "127.0.0.1",
"user": "bots_user",
"pass": "bots_password",
"name": "bots_database"
}
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
To Debug you need to add the following to your CSProj file (Replace {{PATH_TO_REPO}} with your actual path (Eg C:\Repo\BotBase)
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>{{PATH_TO_REPO}}\BotBase\bin\Debug\netcoreapp3.1\win10-x64\Plugins\</OutputPath>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>{{PATH_TO_REPO}}\BotBase\bin\Release\netcoreapp3.1\win10-x64\Plugins\</OutputPath>
</PropertyGroup>
Then in the Debug Settings you will need to set it to Launch an executable
{{PATH_TO_REPO}}\BotBase\bin\Debug\netcoreapp3.1\win10-x64\BotBase.exe
And set the Working Directory to be the location of the exe (eg)
{{PATH_TO_REPO}}\BotBase\bin\Debug\netcoreapp3.1\win10-x64\
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 netcoreapp3.1 is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.0.3.8-beta | 1,118 | 6/12/2021 | |
| 1.0.3.7-beta | 1,028 | 6/5/2021 | |
| 1.0.3.6-beta | 969 | 6/4/2021 | |
| 1.0.3.5-beta | 962 | 6/4/2021 | |
| 1.0.3.4-beta | 983 | 6/3/2021 | |
| 1.0.3.2 | 1,155 | 6/1/2021 | |
| 1.0.3.1 | 1,116 | 6/1/2021 | |
| 1.0.3 | 1,162 | 5/31/2021 | |
| 1.0.2.1 | 1,246 | 12/30/2020 | |
| 1.0.2 | 1,227 | 12/30/2020 | |
| 1.0.1 | 1,362 | 8/26/2020 | |
| 1.0.0.8 | 1,327 | 8/25/2020 | |
| 1.0.0.7 | 1,265 | 8/25/2020 | |
| 1.0.0.6 | 1,340 | 8/2/2020 | |
| 1.0.0.5 | 2,261 | 8/2/2020 | 1.0.0.5 is deprecated because it has critical bugs. |
| 1.0.0.3 | 1,295 | 7/26/2020 | |
| 1.0.0.2 | 1,317 | 6/29/2020 | |
| 1.0.0.1 | 1,358 | 6/21/2020 |