From e63870a63174023ef950034b4c6ea2d88ab89c8a Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 4 Apr 2022 00:31:18 +0200 Subject: Add whatsapp deprecation warning (#1792) --- bridge/whatsapp/whatsapp.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bridge/whatsapp') 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") } -- cgit v1.2.3