Need help in fixing an error in "Code a Discord Bot with Python"

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 “”, 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:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.