Skip to content
Sign upLog in
← Back to Community

problem with discord.py

Profile icon
iTzTarek

i have a problem in this code , i don't have any idea what causes this error , thanks for your help !
Screenshot_363

Voters
Profile icon
MartinRostejnsk
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

can we see your code? your repl is private.

Profile icon
iTzTarek

@RYANTADIPARTHI
i made it public

Profile icon
19wintersp

Your repl is private, so we can't see your code, but that error means that you've tried to register the same command twice, with different callbacks. It looks like this error is on "cogs/sug.py", line 43.

Profile icon
iTzTarek

@19wintersp
i made it public and for the error, its working for me when i run it on visual studio code for example, im not sure why this happens here

Profile icon
19wintersp

@iTzTarek
First of all, your Discord API token is currently publicly visible. Move it to a ".env" file.

Profile icon
19wintersp

@iTzTarek
I'm going to look further, but maybe this StackOverflow question might help?

Profile icon
iTzTarek

okay thanks for your help

@19wintersp

i just removed the token

Profile icon
iTzTarek

@19wintersp
ok thanks i will check it out

Profile icon
iTzTarek

@19wintersp
i checked it but i think the problem is because repl python is 3.8 not the one that i used in the code