#πŸ”’ I Need Help ASAP

98 messages Β· Page 1 of 1 (latest)

sharp plankBOT
#

@tame bear

Python help channel opened

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.

tame bear
#

@tawdry marlin

#

this is a discord bot by the way

tawdry marlin
#

change discord.Bot to commands.Bot and add to the top of your file:

from discord.ext import commands```
young quartz
#

can you show a full screenshot of your editor?

tawdry marlin
#

Yea that should work

tame bear
young quartz
#

where are you writing your code?

tame bear
#

wispbyte

#

free hosting

young quartz
#

sure, show a full screenshot of that

tame bear
#

of my code?

#

my console

#

?

#

what

young quartz
#

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

tame bear
#

error again

young quartz
#

ok, show the code

tawdry marlin
# tame bear

I think you forgot to save the changes or they didn't stick

tame bear
#

oh yeahπŸ˜‚

#

mb

#

im just too excited to get this fixed

#

ive been stressing for days

young quartz
#

are you fairly new to python?

tame bear
#

yes

#

@tawdry marlin

tawdry marlin
#

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

tawdry marlin
# tame bear <@888722028016832583>

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.

tame bear
#

ill be honest

#

bought this bot

#

and its not working

#

like the script

tawdry marlin
#

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?

tame bear
tame bear
#

ill sned you everything if you want

#

i just dont want ppl stealing

tawdry marlin
#

Can you show the requirements.txt?

tame bear
tame bear
#

i sent the zip

#

they gave me

tawdry marlin
#

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.

tawdry marlin
# tame bear

Do you know how to uninstall packages in the environment you're using?

jolly sorrel
#

Remove pycord from the requirements file and restart the server, i think it should just reset the enviornment in every restart

tawdry marlin
jolly sorrel
#

oh

tame bear
jolly sorrel
#

also change it from pycord to py-cord.

tawdry marlin
# tame bear

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.

tame bear
#

thats without discordpy

jolly sorrel
#

you might need to manually uninstall discord.py and install py-cord

tawdry marlin
# tame bear

Can you show the current code again like you first did?

tame bear
#

it reinstalls look

#

illl send ss

tawdry marlin
#

I think removing it didn't uninstall the old one

#

Oh wait

tame bear
#

what would yu like to see

tawdry marlin
#

change discord.Client to discord.Bot again

tame bear
#

thats what i was thinkung

tawdry marlin
#

I was going to ask for that part but from the error I remember we still changed it to that.

tame bear
#

and do i remove the

tawdry marlin
#

Yea you can remove that

tame bear
#

done

#

thank you so much

#

you guys are life savers

#

honestly

#

im so happy

#

thank you

tawdry marlin
#

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.

tame bear
#

if they even respondπŸ˜‚

#

think they were ghosting me to save the hassle

#

thank you so much

#

so proud of you

tawdry marlin
#

Tyyy πŸ˜‚

tame bear
#

byeee

tawdry marlin
#

Ywww

sharp plankBOT
#
Python help channel closed using Discord native close action

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.