Kayn
A DSharpPlus/Qmmands ASP.NET Core Discord/Twitch bot example made in .NET 5
Install / Use
/learn @Kiritsu/KaynREADME
Kayn
A Discord/Twitch bot made with DSharpPlus and Qmmands running on ASP.NET Core (.NET 5)
Requirements
I do not provide any artifact of the program. You will have to build it by yourself. The following tools are needed:
- Git
- .NET 5 SDK
- Visual Studio 2019, Rider or any good IDE.
- Discord Bot Application
Self-Compilation
- Clone the project:
git clone https://github.com/Kiritsu/Kayn - 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.
- 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
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
