Discord bot in C# made using Discord.NET discord api wrapper writen in C#
P.S. Its a humble request from me to anyone working with this project to follow coding conventions for the sake of other fellow programmers. I will recommend Stylecop.Alanyzerand Discord.NET analyzer as the analyzer for this project
How to use:
Create a file named appsettings.json
give 2 values in this format
{
"token": "your discord bot's token",
"Prefix": "your discord bot's prefix"
}
Save it in the base directory (\Evelin) itself
then run Program.cs
and it should run properly until there are errors in code
Dependencies required:
Discord.NET
Discord.Addons.Hosting
Microsoft.Extensions.Configuration
Microsoft.Extensions.Hosting
Microsoft.Extensions.DependencyInjection
How to install dependencies:
- Using Command Line:
dotnet add package "package url without quotes"
This will automatically install the latest version of packages. The url can be found here
- Nuget Package Manager:
You can use the builtin package manager which can be found in
Tools > Nuget Package Manager > Manage NuGet Packages for solutions
reference links:
token
dependencies or you can very well use inbuilt package manager in Visual Studio