Im new at this discord.py thing. I've just done a discord.py bot, it works ok, but sometimes the bot repeats constantly the command messages.
I googled this problem and found out that maybe is for running the script over and over again (like when you save and run after edited or added functions).
So I want to stop running the process, just like when I restart windows, the bot is offline (if I run the script after restarting windows, the bot acts normaly).
Pls help
If someone needs the code, I can paste it here then.
PD: I made the bot exact as a tutorial...
This message really is not discord.py specific and applies to every script which runs indefinetely.
You are running multiple instances of your bot. If you run it in an IDE envoirment, then there should be a stop button somewhere. If you are running it in console, closing the console window will close the bot.
Edit: If you are running it in sublime3 like your tags suggest, every time you want to close your bot, go to "Tools" and then "Cancel Build" (hotkey: CTRL + Break). As soon as you run another instance of your bot, sublime "decouples" the current script in favour of the new one and this method does not work anymore. Then you have to manually go through your running processes (command line or Task Manager) and search for any "Python" processes.
In general I reccomend running the script in the commandline instead as you have more control over it.
How to stop running discord bot process (python)