diff options
author | Wim <wim@42.be> | 2022-04-04 00:31:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 00:31:18 +0200 |
commit | e63870a63174023ef950034b4c6ea2d88ab89c8a (patch) | |
tree | f55a04c5c1b480120327e4ffcfea295432d707e9 /bridge/whatsapp/whatsapp.go | |
parent | ce782ff6fb1109811bfefa8d7c329af34517fab5 (diff) | |
download | matterbridge-msglm-e63870a63174023ef950034b4c6ea2d88ab89c8a.tar.gz matterbridge-msglm-e63870a63174023ef950034b4c6ea2d88ab89c8a.tar.bz2 matterbridge-msglm-e63870a63174023ef950034b4c6ea2d88ab89c8a.zip |
Add whatsapp deprecation warning (#1792)
Diffstat (limited to 'bridge/whatsapp/whatsapp.go')
-rw-r--r-- | bridge/whatsapp/whatsapp.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go index ba0ede64..bb0dfe57 100644 --- a/bridge/whatsapp/whatsapp.go +++ b/bridge/whatsapp/whatsapp.go @@ -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") } |