C
C#3mo ago
griff

Curious for the use case / reasoning for using C# to make a Discord bot

hi, i am new to development, currently getting a foundation in PowerShell and some light C# projects -- i briefly dabbled in front end and used JS to make a discord bot awhile ago and also knew Python was an alternative and wanted to ask what the pro's/con's could be to using C#. i'm interested in C# for .NET overall, but would love to hear more about C# bots. my train of thought, albeit inexperienced and not very nuanced, is Python is a tad bit (pretty) depricated for bots, and discord being an electron app should integrate well with JS. but again, my knowledge is surface level -- excited to hear a well versed take!
11 Replies
Angius
Angius3mo ago
You would use C# to make a bot because you know C#
Pobiega
Pobiega3mo ago
The fact that the discord client is JS with electron doesnt really affect a bot at all, in any way shape or form
Angius
Angius3mo ago
Same for Python, JS, Erlang, COBOL, and Matlab
Pobiega
Pobiega3mo ago
the bot is just a process that interacts with the discord API in a certain way C# has a bunch of great libraries for writing discord bots in, but so do python and JS. As ZZZZZ said, the benefit is that you can work in a language you enjoy working in. For me, I can't really code in a language that doesn't have a rich and strict type system.
MODiX
MODiX3mo ago
Sorry @oke your message contained blocked content and has been removed!
oke
oke3mo ago
The best library is DSharp+ - GitHub: https://github.com/DSharpPlus/DSharpPlus
GitHub
GitHub - DSharpPlus/DSharpPlus: A .NET library for making bots usin...
A .NET library for making bots using the Discord API. - DSharpPlus/DSharpPlus
Angius
Angius3mo ago
Controversial opinion to have around those parts, this is Remora territory :KEKW:
oke
oke3mo ago
nah and im 100% not a salesman for them :when:
Pobiega
Pobiega3mo ago
Thems fighting words Remora is the objectively better library, but you are allowed to have an incorrect opinion.
Plerx
Plerx3mo ago
$discordlibs
MODiX
MODiX3mo ago
Discord libraries to use for making a C# Discord bot, in order of GitHub popularity: - Discord.NET ~3.2k stars - DSharpPlus ~1.2k stars - Remora.Discord ~240 stars - Disqord ~150 stars - NetCord ~40 stars