Why does discord.py sometimes spam and use old code that was deleted and saved? #6717
-
So, this is a constant issue that I have had with discord.py. Sometimes, randomly, even after you haven't changed any code, it starts spamming the same message, and using old code that you have written and saved. It is very, VERY annoying. One bot I made just started spamming messages despite nothing in a loop. But the outright weirdest thing about this is that it somehow grabs old code that you deleted and uses it, but then it randomly switches back to your new code! That is creepy. I have absolutely no idea what is happening here, and I hope this gets fixed soon. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This is highly unlikely. What's more likely is that there is something tucked away somewhere causing this to happen that you may not be aware of. |
Beta Was this translation helpful? Give feedback.
-
discord.py is a library -- it only does what you tell it to do. If you wrote something to spam then it'll spam. If you keep spawning processes without closing them then the old code will still be alive. If you want to restart your bot make sure to fully close it, otherwise a process will continue using "old code" as you put it. |
Beta Was this translation helpful? Give feedback.
discord.py is a library -- it only does what you tell it to do. If you wrote something to spam then it'll spam. If you keep spawning processes without closing them then the old code will still be alive. If you want to restart your bot make sure to fully close it, otherwise a process will continue using "old code" as you put it.