Skip to content

Commit

Permalink
Add whatsapp deprecation warning (#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim authored Apr 3, 2022
1 parent ce782ff commit e63870a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bridge/whatsapp/whatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ type Bwhatsapp struct {
func New(cfg *bridge.Config) bridge.Bridger {
number := cfg.GetString(cfgNumber)

cfg.Log.Warn("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
cfg.Log.Warn("This bridge is deprecated and not supported anymore. Use the new multidevice whatsapp bridge")
cfg.Log.Warn("See https://github.com/42wim/matterbridge#building-with-whatsapp-beta-multidevice-support for more info")
cfg.Log.Warn("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")

if number == "" {
cfg.Log.Fatalf("Missing configuration for WhatsApp bridge: Number")
}
Expand Down

0 comments on commit e63870a

Please sign in to comment.