Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Onichaa authored Aug 28, 2024
1 parent 658d48b commit 1a452ec
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (

_ "github.com/mattn/go-sqlite3"
)
/

func main() {
NewBot("628388024064", func(k string) {
Expand Down Expand Up @@ -50,15 +49,8 @@ func registerHandler(client *whatsmeow.Client) func(evt interface{}) {
if v.Info.Type != "reaction" {
sender := v.Info.Sender.String()
allowedSenders := []string{ //disini isi nomer yang ingin agar bot tidak otomatis read sw dari list nomor dibawah
"628114447477@s.whatsapp.net",
"6285399290529@s.whatsapp.net",
"6281355923372@s.whatsapp.net",
"6285211511650@s.whatsapp.net",
"6282292227486@s.whatsapp.net",
"6282188338550@s.whatsapp.net",
"6285240746696@s.whatsapp.net",
"6281355971448@s.whatsapp.net",
"6283140891091@s.whatsapp.net",
"6281447477366@s.whatsapp.net",
"6281457229553@s.whatsapp.net",
}
if contains(allowedSenders, sender) {
return
Expand Down

0 comments on commit 1a452ec

Please sign in to comment.