Discord Bot Doesn't Recognize Attributes / Imports it originally had. (Pycord, Nextcord & Replit)

Viewed 17

My discord bot was previously running on pycord and only pycord for the previous while, it had several commands and worked fine! When I tried to add nextcord to work on another command, I figured out the hard way that nextcord and pycord are incompatible, upon uninstalling nextcord, it appears that my entire discord bot doesn't recognize old attributes and tokens the way it used to before nextcord was even installed. Generating errors like

    python3 -m poetry add discord
/home/runner/bbot-fixed/venv/bin/python3: No module named poetry.__main__; 'poetry' is a package and cannot be directly executed
exit status 1


    Replit: Package operation failed.
,
    discord.errors.LoginFailure: Improper token has been passed.
,
    AttributeError: module 'discord' has no attribute 'Bot'

I've even made a new replit, set it up like I did before, and it still didn't work! putting quite a bit of time into this discord bot, and since it is my first project, I dont want to lose it over a stupid mistake I have made. Any help would be amazing and I do appreciate it.

0 Answers
Related