Akash98Sky / gemi-bot

Gemi is a telegram chat bot assistant with text, image and file handling capabilities.
https://t.me/MyGemibot
MIT License
1 stars 4 forks source link

I have created the env but? #10

Closed vpsbykaif closed 6 months ago

vpsbykaif commented 6 months ago

I have created the env in the front of the project but it still have this issue:

Screenshot_20240304_232648_Termius

Akash98Sky commented 6 months ago
vpsbykaif commented 6 months ago

Screenshot_20240305_070810_Termius

Akash98Sky commented 6 months ago

Oh sorry, my bad.

VS code loads the .env file while opening terminal so I was kind-of unaware of this situation. The .env file needs to be somehow loaded as environment variables then only this will work.

You can install python-dotenv package and add this code in the top of main.py

import dotenv
dotenv.load_dotenv()
Akash98Sky commented 6 months ago

This should be fixed now.