read vk token and upstream socks pass from the environment for vk-bot (#148)

* read vk token and upstream socks pass from the environment for vk-bot

* update env variable name and documentation

---------

Co-authored-by: Sbenazar <voroninan95ton@gmail.com>
Co-authored-by: kulikov0 <19497634+kulikov0@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-08-04 20:30:25 +02:00
1 parent 0f9f908874
commit 515bb65cbf
2 files changed
+9

No files matched your search

+7
View File
@@ -497,6 +497,13 @@ func main() {
upstreamPass := flag.String("upstream-pass", "", "upstream SOCKS5 password forwarded to spawned creators")
flag.Parse()
if *token == "" {
*token = os.Getenv("VK_TOKEN")
}
if *upstreamPass == "" {
*upstreamPass = os.Getenv("UPSTREAM_PASS")
}
switch *resources {
case "default", "moderate", "unlimited":
default: