HelioNetworks / Discord-Bot-Example

Project used in the Discord bot tutorial.
1 stars 0 forks source link

Now that Discord.py is dead... #1

Open AraHaan opened 2 years ago

AraHaan commented 2 years ago

The maintainer of Discord.py stepped down and nobody wanted to maintain it, as such since it is now dead (unmaintained) it should be considered unsafe to use it anymore. As such I think a proper replacement (with no voice support that I know of yet) is to use Remora.Discord or the other Discord libraries.

Theoretically HelioHost could allow bots made in any of those libraries, for C# it could just be told a github repository and then it clones the bot, then uses the .NET install scripts to install the .NET SDK (I made a github action to have it always download the latest version of the daily quality .NET 6 SDK), then it could run dotnet build -c Release, then dotnet run -c Release --no-build (But have them select the programming language they used to write their bot).

However for Entity Framework Core 6 there might be an issue getting it to properly connect to the database stored in HelioHost.

(Also the video kinda exposed the api token to Discord and it should have been blurred out)

Unknown025 commented 2 years ago

I've heard some loose rumors, but after verifying, turns out that Discord.py really is dead (link provided for future reference), so thanks for bringing it up.

I'm aware there's several other alternatives based in C# or Node.js, but I think it'd be wise to wait for the Plesk transition to be completed before diving much further into alternatives to Discord.py. I'm unsure of how well C# would work, since Lily (our Windows-based server) is mostly geared towards ASP.NET with IIS Express, as opposed to other .NET applications. Other servers are running Linux, and while .NET Core exists, their main purpose is for web hosting.

(As for the video, I regenerated the API token after publishing.)

RakunaM commented 2 years ago

You can use pycord, its the most popular discord.py fork its maintained and have slash commands, applications menu (updated)

Unknown025 commented 2 years ago

Are there any notable differences between Pycord and Discord.py, or are they both plug-and-play?

RakunaM commented 2 years ago

Are there any notable differences between Pycord and Discord.py, or are they both plug-and-play?

Pycord is a fork of discord.py, but its not just plug and play, a group of developers, maintaining a python library for the Discord API. Pycord is a fork of discord.py getting new features and updates along with the API. And its not dead its getting every feature along api update.