add --version flag
This commit is contained in:
1 parent
b9d5603741
commit
48dcb04c77
12 files changed
+38
No files matched your search
@@ -16,6 +16,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
roomFlag := flag.String("room", "", "event slug or https://dion.vc/event/<slug> (required)")
|
||||
displayName := flag.String("name", "Joiner", "display name in the room")
|
||||
socksHost := flag.String("socks-host", common.SocksLocalhostIP, "SOCKS5 listen address (use 0.0.0.0 to expose on LAN)")
|
||||
|
||||
@@ -16,6 +16,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
cookiesPath := flag.String("cookies", "", "path to cookies-dion.json (exported from creator-app)")
|
||||
roomFlag := flag.String("room", "", "event slug or https://dion.vc/event/<slug> to rejoin (empty = create new room)")
|
||||
displayName := flag.String("name", "Headless", "display name in the room")
|
||||
|
||||
@@ -41,6 +41,7 @@ func resolveHostname(hostname string) (string, error) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
tmLink := flag.String("tm-link", "", "Telemost conference URI to join (required)")
|
||||
displayName := flag.String("name", "Joiner", "display name in the conference")
|
||||
socksHost := flag.String("socks-host", common.SocksLocalhostIP, "SOCKS5 listen address (use 0.0.0.0 to expose on LAN)")
|
||||
|
||||
@@ -877,6 +877,7 @@ func extractUfrag(candidate string) string {
|
||||
}
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
cookiesPath := flag.String("cookies", "", "path to cookies-yandex.json")
|
||||
cookieString := flag.String("cookie-string", "", "raw cookie string")
|
||||
tmLink := flag.String("tm-link", "", "Telemost conference URI to join an existing conference")
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
module headless-vk-bot
|
||||
|
||||
go 1.26.1
|
||||
|
||||
require whitelist-bypass/relay v0.0.0
|
||||
|
||||
require github.com/pion/transport/v4 v4.0.1 // indirect
|
||||
|
||||
replace whitelist-bypass/relay => ../../relay
|
||||
@@ -0,0 +1,2 @@
|
||||
github.com/pion/transport/v4 v4.0.1 h1:sdROELU6BZ63Ab7FrOLn13M6YdJLY20wldXW2Cu2k8o=
|
||||
github.com/pion/transport/v4 v4.0.1/go.mod h1:nEuEA4AD5lPdcIegQDpVLgNoDGreqM/YqmEx3ovP4jM=
|
||||
@@ -16,6 +16,8 @@ import (
|
||||
"sync/atomic"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"whitelist-bypass/relay/common"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -466,6 +468,7 @@ func (b *bot) run() error {
|
||||
}
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
token := flag.String("token", "", "VK community access token (required)")
|
||||
groupID := flag.String("group-id", "", "VK community ID, digits only (required)")
|
||||
userID := flag.String("user-id", "", "comma-separated VK user IDs allowed to issue commands (empty = anyone)")
|
||||
|
||||
@@ -571,6 +571,7 @@ func (b *Bridge) run(callInfo *CallInfo, cookieStr string, cfg VKConfig) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
cookiesPath := flag.String("cookies", "", "path to cookies.json")
|
||||
cookieString := flag.String("cookie-string", "", "raw cookie string (name=val; name=val)")
|
||||
peerId := flag.String("peer-id", "", "VK peer_id for a new call")
|
||||
|
||||
@@ -15,6 +15,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
roomFlag := flag.String("room", "", "WB Stream room id, wbstream://<id>, or https://stream.wb.ru/room/<id> (required)")
|
||||
displayName := flag.String("name", "Joiner", "display name in the room")
|
||||
socksHost := flag.String("socks-host", common.SocksLocalhostIP, "SOCKS5 listen address (use 0.0.0.0 to expose on LAN)")
|
||||
|
||||
@@ -14,6 +14,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
common.MaybePrintVersion()
|
||||
cookiesPath := flag.String("cookies", "", "path to cookies-wbstream.json")
|
||||
roomFlag := flag.String("room", "", "WB Stream room id, wbstream://<id>, or https://stream.wb.ru/room/<id> (empty = create new)")
|
||||
displayName := flag.String("name", "Headless", "display name in the room")
|
||||
|
||||
Reference in new issue
Block a user