Are you running the code yourself or on a bot?

I tested the code I gave you before I posted it, and it is designed for a bot, which is how your original is also designed.

If it's not working, please provide any error messages that you get and/or how you know it's not working.