From cbc8a39d72d985a10a3931b88f7f7e41b8d5621b Mon Sep 17 00:00:00 2001 From: eneller Date: Sun, 27 Apr 2025 17:47:42 +0200 Subject: [PATCH] chore: update name --- README.md | 8 ++++---- go.mod | 8 ++++---- go.sum | 4 ++-- main.go | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c2c7fb4..6c0a8f0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# Whatsup-Poll -CLI Whatsapp Polls using go: +# schneller-whatsapp +CLI Whatsapp Messages (and Polls) using go: - [whatsmeow](https://github.com/tulir/whatsmeow), which now also has python bindings with [neonize](https://github.com/krypton-byte/neonize). - [urfave/cli](https://github.com/urfave/cli) for the command line @@ -7,10 +7,10 @@ CLI Whatsapp Polls using go: Can be easily scheduled using `crontab` because of its non-interactive operation ``` NAME: - whatsup-poll - Run WhatsApp actions from your CLI. User JID has to end with '@s.whatsapp.net', Group ID with '@g.us' + schneller-whatsapp - Run WhatsApp actions from your CLI. User JID has to end with '@s.whatsapp.net', Group ID with '@g.us' USAGE: - whatsup-poll [global options] [command [command options]] + schneller-whatsapp [global options] [command [command options]] COMMANDS: message send a message using diff --git a/go.mod b/go.mod index d04978d..7a95ede 100644 --- a/go.mod +++ b/go.mod @@ -1,22 +1,23 @@ -module github.com/eneller/whatsup-poll +module github.com/eneller/schneller-whatsapp go 1.24.2 require ( github.com/mattn/go-sqlite3 v1.14.28 github.com/mdp/qrterminal/v3 v3.2.1 + github.com/urfave/cli/v3 v3.2.0 go.mau.fi/whatsmeow v0.0.0-20250424100714-086604102f64 + google.golang.org/protobuf v1.36.6 ) require ( filippo.io/edwards25519 v1.1.0 // indirect github.com/google/uuid v1.6.0 // indirect - github.com/gorilla/websocket v1.5.0 // indirect + github.com/gorilla/websocket v1.5.3 // indirect github.com/mattn/go-colorable v0.1.14 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/petermattis/goid v0.0.0-20250319124200-ccd6737f222a // indirect github.com/rs/zerolog v1.34.0 // indirect - github.com/urfave/cli/v3 v3.2.0 // indirect go.mau.fi/libsignal v0.1.2 // indirect go.mau.fi/util v0.8.6 // indirect golang.org/x/crypto v0.37.0 // indirect @@ -24,6 +25,5 @@ require ( golang.org/x/net v0.39.0 // indirect golang.org/x/sys v0.32.0 // indirect golang.org/x/term v0.31.0 // indirect - google.golang.org/protobuf v1.36.6 // indirect rsc.io/qr v0.2.0 // indirect ) diff --git a/go.sum b/go.sum index 142ca4f..be38adb 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg= +github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= diff --git a/main.go b/main.go index ae42c79..8df151e 100644 --- a/main.go +++ b/main.go @@ -118,7 +118,7 @@ func main() { }, { Name: "poll", - Usage: "send a poll using
; requires a group ID", + Usage: "send a poll using
", Arguments: []cli.Argument{ &cli.StringArg{Name: "jid", Destination: &jidStr}, // use id field of group &cli.StringArg{Name: "header", Destination: &header},