#π I Need Help ASAP
98 messages Β· Page 1 of 1 (latest)
@tame bear
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
change discord.Bot to commands.Bot and add to the top of your file:
from discord.ext import commands```
like this?
can you show a full screenshot of your editor?
Yea that should work
the website?
where are you writing your code?
sure, show a full screenshot of that
whatever you're seeing
I'm not familiar with wispbyte
don't just show cropped images of your code as you might be leaving out important things
it's easier if you just show it all at once
ok, show the code
are you fairly new to python?
It'll be fixed soon I'm sure but you'll get better help if your show all of the code usually and not just crops of it. I don't personally mind though
Do you know if you meant to use cogs or not? Because the line you had I assumed meant you would be using the command bot version which is called bot, which looks like it might not be what you wanted.
change the line
commands.Bot to discord.Client and it should work.
That's horrible. Did they not make sure it worked or give further instructions? Is there a specific discord module it is supposed to work with? Did it come with a requirements.txt file?
they obviously helped me a little and yes it came with requirements.txt
ill sned you everything if you want
i just dont want ppl stealing
Can you show the requirements.txt?
check dms
i sent the zip
they gave me
Ahhh. I see the issue. Your original code should have been fine I think but the requirements.txt is installing two conflicting discord bot modules. I'm on my phone ATM so I can't.
Remove pycord from the requirements file and restart the server, i think it should just reset the enviornment in every restart
let me see
I'm not familiar enough with these but I think pycord is the one she wants to keep. discord.py doesn't have discord.Bot I don't think, just client and no bot.slash_command
ill run it without discord.py
also change it from pycord to py-cord.
Odd. How do you run what you have? Does it install them every time? Try removing discord.py from the requirements file and restarting it.
okay
ok
you might need to manually uninstall discord.py and install py-cord
no its done it
it reinstalls look
illl send ss
yeah okay
what would yu like to see
change discord.Client to discord.Bot again
thats what i was thinkung
I was going to ask for that part but from the error I remember we still changed it to that.
and do i remove the
.
or leave it
Yea you can remove that
done
thank you so much
you guys are life savers
honestly
im so happy
thank you
No problem. You should inform whoever you bought it from that they left in a conflicting package in the requirements file (discord.py) when exclusively pycord was needed, and ensure that it is removed in the future.
will do
if they even respondπ
think they were ghosting me to save the hassle
thank you so much
so proud of you
Tyyy π
byeee
Ywww
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.