ctw.BotCore 1.1.0

Install-Package ctw.BotCore -Version 1.1.0
dotnet add package ctw.BotCore --version 1.1.0
<PackageReference Include="ctw.BotCore" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ctw.BotCore --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ctw.BotCore, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ctw.BotCore as a Cake Addin
#addin nuget:?package=ctw.BotCore&version=1.1.0

// Install ctw.BotCore as a Cake Tool
#tool nuget:?package=ctw.BotCore&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


CodeNotary CodeQL

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

SQL Support

Add the following to enable MySql Support

			"host": "",
			"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

How to debug your modules

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 Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

Then in the Debug Settings you will need to set it to Launch an executable


And set the Working Directory to be the location of the exe (eg)


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.1.0 106 8/15/2021 160 6/12/2021 138 6/5/2021 119 6/4/2021 98 6/4/2021 118 6/3/2021 137 6/2/2021 102 6/1/2021 119 6/1/2021
1.0.3 149 5/31/2021 159 12/30/2020
1.0.2 104 12/30/2020
1.0.1 256 8/26/2020 211 8/25/2020 181 8/25/2020 250 8/2/2020 537 8/2/2020 212 7/26/2020 205 6/29/2020 290 6/21/2020