I have just started learning how to make bots using python watching this video.
But for a long time I am getting this error,
File “main.py”, line 79, in on_message
index = int(msg.split(“&new”,1)[1])
IndexError: list index out of range
I don’t understand where I went wrong, My code is below: