Raptor123471 / DingoLingo

A Discord music bot written in Python with support for Youtube, SoundCloud, Spotify, Bandcamp, Twitter, and custom files.
GNU General Public License v3.0
282 stars 165 forks source link

Bot won't reply in guilds #106

Closed Wip-Sama closed 2 years ago

Wip-Sama commented 2 years ago

I'm having trouble getting the bot to reply to any commands in any guild.

The bot started and it's "working" somehow because if I send private messages to the bot "$help" the bot reply

Python 3.9.13 Depencies all installed (pip install -r requitements.txt)

solaluset commented 2 years ago

Is there any output in the console?

RafaelSolVargas commented 2 years ago

Did you invited the bot to the guilds you are trying to execute commands?

Wip-Sama commented 2 years ago

Yes I Invited the bot and ther're not any output Also I updated python to 3.10 but nothing changed

And I have this problem too: https://imgur.com/YhPhpPc Maybe this can help find the problem

These are the depencies that I use:

Package                Version
---------------------- -----------
aiohttp                3.7.4.post0
aiosignal              1.2.0      
APScheduler            3.6.3      
asttokens              2.0.5      
async-timeout          3.0.1      
asyncio                3.4.3      
attrs                  21.4.0     
backcall               0.2.0      
beautifulsoup4         4.11.1     
Brotli                 1.0.9      
bs4                    0.0.1      
cachetools             4.2.2      
certifi                2022.5.18.1
cffi                   1.15.0     
chardet                4.0.0      
charset-normalizer     2.0.12
clean-text             0.6.0
colorama               0.4.4
cryptography           37.0.2
debugpy                1.6.0
decorator              5.1.1
discord-components     2.1.2
discord-ext-slash      0.9.2
discord.py             1.7.3
discord-ui             5.1.6
discord2               2.0.1
emoji                  1.7.0
entrypoints            0.4
executing              0.8.3
ffmpeg-python          0.2.0
frozenlist             1.3.0
ftfy                   6.1.1
future                 0.18.2
idna                   3.3
imageio-ffmpeg         0.4.7
ipykernel              6.14.0
ipython                8.4.0
ipython-genutils       0.2.0
jedi                   0.18.1
jupyter-client         7.3.4
jupyter-core           4.10.0
lavalink               3.1.7
LEPL                   5.1.3
matplotlib-inline      0.1.3
multidict              6.0.2
mutagen                1.45.1
mysql-connector        2.2.9
mysql-connector-python 8.0.29
nest-asyncio           1.5.5
numpy                  1.22.4
packaging              21.3
parso                  0.8.3
pickleshare            0.7.5
pip                    22.1.2
progressbar            2.5
prompt-toolkit         3.0.29
protobuf               4.21.1
psutil                 5.9.1
pure-eval              0.2.2
py-cord                2.0.0rc1
pycord                 0.1.1
pycparser              2.21
pycryptodomex          3.14.1
Pygments               2.12.0
PyNaCl                 1.5.0
pyparsing              3.0.9
PySocks                1.7.1
pyTelegramBotAPI       4.5.1
python-dateutil        2.8.2
python-dotenv          0.20.0
python-telegram-bot    13.12
pytz                   2022.1
pytz-deprecation-shim  0.1.0.post0
pywin32                304
pyzmq                  23.1.0
requests               2.28.0
setdefaultencoding     0.0.0a0
six                    1.16.0
soupsieve              2.3.2.post1
spotipy                2.19.0
stack-data             0.2.0
teapot                 2.5
tornado                6.1
traitlets              5.2.2.post1
typing_extensions      4.2.0
tzdata                 2022.1
tzlocal                4.2
Unidecode              1.3.4
urllib3                1.26.9
wcwidth                0.2.5
websockets             10.3
yarl                   1.7.2
yt-dlp                 2022.5.18
solaluset commented 2 years ago

Pycord conflicts with discord.py. Try removing these packages: discord-components discord-ext-slash discord.py discord-ui discord2 py-cord. After that install py-cord again.

RafaelSolVargas commented 2 years ago

You can try to create an virutal environment for your bot code and install only the necessary packages in it. This will create an unique python.exe and pip for your code, removing any possibility of conflicts between packages.

The common command to create a new virtual environment in python is: python -m venv /path/to/directory, everything under this folder will be inside the environment, so you must put the bot code inside this folder Then you must activate the environment in the current terminal, you can do this by typing ./path/to/directory/Scripts/Activate

Then you can use pip install -r requirements.txt to install only the required packages for bot.

You can read more about python virtual environment here: https://www.infoworld.com/article/3239675/virtualenv-and-venv-python-virtual-environments-explained.html#:~:text=To%20install%20virtualenv%2C%20just%20use,Python%203%20(see%20above).

If you have any problems with it let us know.

Wip-Sama commented 2 years ago

Pycord conflicts with discord.py. Try removing these packages: discord-components discord-ext-slash discord.py discord-ui discord2 py-cord. After that install py-cord again.

Thanks this fixed, I need to clean all my libraries I think

Also thanks for the python vm, that will be quite useful.