My current project tree:
I am assuming that
mainbot.py is the entry point from where you run your application, so
based on your project tree, the file should be available at path
I kept moving around the file between the redditbot/ directory and the commands/ package until it just started working.
You probably ended up placing the file in the same folder as your
Also for some reason whenever I call print(), PyCharm tells me that it is undefined...
There can be many posibilities behind this, check if the python interpreter is configured correctly and the python libraries are available on the PYTHONPATH for the project