Discord.py is gone, how to keep my bot alive?

This article will guide you on how to keep your dpy bot alive even tho it discord.py has been discontinued. This is one of the easiest ways to keep your project working even after the message becomes a privileged intent.

What? Why?

Danny, the sole developer of Discord.py has announced that he will no longer continue working on the project called “Discord.py”, According to my understanding, he is quitting because it’s too much stress and there is no fun in working on something for a company like discord which is trying to limit the possibilities.

He announced this about 2 weeks back, now, if your bot is in <100 servers and you don’t plan on verifying it in the future, then you don’t have to worry about shifting to another fork of discord.py. But if you plan on scaling your bot to more than 100 servers then you will have to verify it whatsoever and since the message will become a privileged intent, you will have to shift your bot to slash commands which isn’t possible in Discord.py itself. But there is one maintained fork of dpy that has the same functions as dpy but with slash commands!

What is that “fork”

That fork is PyCord — A fork of discord.py. PyCord is a modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord written in Python.

Shifting to PyCord

(Python 3.8 or higher is required)

To install the library without full voice support, you can just run the following command:
# Linux/macOS
python3 -m pip install -U py-cord

# Windows
py -3 -m pip install -U py-cord

Otherwise to get voice support you should run the following command:
# Linux/macOS
python3 -m pip install -U “py-cord[voice]”

# Windows
py -3 -m pip install -U py-cord[voice]

To install the development version, do the following:
$ git clone https://github.com/Pycord-Development/pycord
$ cd pycord
$ python3 -m pip install -U .[voice]

Boom! There you have it, PyCord has been successfully installed.
Now, all you have to do is uninstall discord.py and your bot should start working without needing any code change.

It’s my first time making a bot, any example?

Yes! The examples for PyCord can be found here.

Wait so, I don’t have to change anything?

Yep, you don’t have to change anything because all of the basic functions of discord.py are present in PyCord.

Oh okay, Btw I want to add [x] feature, how can I do so?

You can join PyCord’s official discord server to get any kind of support. Moreover, you can read the documentation for PyCord. Links for the same —
Discord server


Well here you have it, you now know how to shift from discord.py to PyCord and keep your bot alive in the future. I wish you luck on your bot
Good luck with your journey ❤
My Discord server
My email address
Donate me

A self-learning Developer who is always eager to make more projects/articles to help other users. You will find articles related to different languages here.