'Visual Code: can't open file [Errno 2] No such file or directory

I need help with my project, I get this when I run my code https://imgur.com/a/IiYBEBY

and here is my folder, and there is bot.py:

https://imgur.com/a/IiYBEBY

any help will be appreciated, please



Solution 1:[1]

You are not in the bot directory.


cd bot

then run python -u bot.py

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 3nws