SkillAgentSearch skills...

Kayn

A DSharpPlus/Qmmands ASP.NET Core Discord/Twitch bot example made in .NET 5

Install / Use

/learn @Kiritsu/Kayn
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Kayn

A Discord/Twitch bot made with DSharpPlus and Qmmands running on ASP.NET Core (.NET 5)

Build Status Discord Server

Requirements

I do not provide any artifact of the program. You will have to build it by yourself. The following tools are needed:

Self-Compilation

  1. Clone the project: git clone https://github.com/Kiritsu/Kayn
  2. Open your IDE to compile or use dotnet build

You can publish the app with: dotnet publish --framework net5.0 --configuration Release --runtime linux-x64. For a list of runtime IDs, please see the .NET Core RID Catalog.

  1. Create a json file and fill the following values:
{
	"Discord" : {
		"Game": "you.",
		"Token": "",
		"Prefix": "!",
		"ClientId": "client_id",
		"ClientSecret": "client_secret"
	},
	"Database" : {
		"Provider": "Postgresql",
		"Hostname": "localhost",
		"Database": "kayn",
		"Port": 5432,
		"Username": "kayn",
		"Password": "p4$$vv0rd"
	}
}

ClientId and ClientSecret are used to OAuth2 authentication with the Web project.

Either rename that file to kayn.json and locate it next to your executable, or create an environment variable KAYN_HOME pointing to that file. The environment variable has a priority over the other option.

Contributing

Since the project is at an early stage, I'm not really accepting contributions for now. Expect them to be open when the database and logging (microservice) systems are done. Issues are available if you have any question/suggestion, etc.

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated3y ago
Forks0

Languages

C#

Security Score

55/100

Audited on Jun 3, 2022

No findings