Why is my discord module not working

i imported discord and used code on this website “How to make your own discord bot in under 15 minutes (With Python) | by Lopamudra Das | DataX Journal | Mar, 2023 | Medium

I used pycharm to do it and I’m not sure why nothing is working

even though the code is correct ,it always shows me error in a new file called connections which I do not know of. how do I solve it

You seem very confident that your code is correct. How are you so sure?

it doesnt show me an error in my code but open up a new python file called connections showing me all the errors in that page