chore: update name

This commit is contained in:
eneller
2025-04-27 17:47:42 +02:00
parent 8a89e81e83
commit cbc8a39d72
4 changed files with 11 additions and 11 deletions

View File

@@ -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 <JID> <MESSAGE>

8
go.mod
View File

@@ -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
)

4
go.sum
View File

@@ -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=

View File

@@ -118,7 +118,7 @@ func main() {
},
{
Name: "poll",
Usage: "send a poll using <JID> <HEADER> <OPTIONS> ; requires a group ID",
Usage: "send a poll using <JID> <HEADER> <OPTIONS>",
Arguments: []cli.Argument{
&cli.StringArg{Name: "jid", Destination: &jidStr}, // use id field of group
&cli.StringArg{Name: "header", Destination: &header},