TeamPGM / PagerMaid-Pyro

Advanced Multi-Featured Telegram UserBot by pyrogram.
GNU Affero General Public License v3.0
620 stars 73 forks source link

[Feat]: Better initialization process in container environment #82

Open AH-dark opened 1 month ago

AH-dark commented 1 month ago

请确保您已阅读以上注意事项,并勾选下方的确认框。

需要添加的功能内容

The current initialization relies on stdin input. In a container environment, it can be replaced by trying to read environment variables.

In addition, the existence of /pagermaid/workdir/data/config.yml itself can be a lockfile, so it seems unnecessary to create another lockfile.

AH-dark commented 1 month ago

I can submit a PR if necessary