Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 8abb1fc5a9821475fa36b1727e5ac379bb6f0a0b Author: Wim <wim@42.be> Date: Mon Apr 04 00:31:18 2022 +0000 Add whatsapp deprecation warning (#1792) diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go index ba0ede6..bb0dfe5 100644 --- a/bridge/whatsapp/whatsapp.go +++ b/bridge/whatsapp/whatsapp.go @@ -406 +4011 @@ 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")   }