From 4c4925dcb08c0d1c11d76f390841429e5ee9dab1 Mon Sep 17 00:00:00 2001 From: cynic Date: Wed, 15 Jun 2022 18:25:33 -0400 Subject: [PATCH] update webhook API call for new mdbf structure --- plugins/bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bridge.py b/plugins/bridge.py index e07840e..43548a5 100644 --- a/plugins/bridge.py +++ b/plugins/bridge.py @@ -30,7 +30,7 @@ def run(event, ctx, bot): message.manual(":"+msg.parameters[0], "PRIVMSG", [msg.prefix[1:].split("!")[0], ":\x01dorfl bot\x01"]).send(ctx.socket) if msg.command == "PRIVMSG" and ("py-ctcp" not in msg.prefix): pm = privmsg.parse(msg) - disc_bot_instance.execute_webhook(disc_bot_instance.config["discord_webhook"], pm.bod, pm.fr.split("!")[0]+" (IRC)") + disc_bot_instance.api.execute_webhook(disc_bot_instance.config["discord_webhook"], pm.bod, pm.fr.split("!")[0]+" (IRC)") dorfl.run(event_handler = magic) elif event == "MESSAGE_CREATE" and init == True and ctx["channel_id"] == disc_bot_instance.config["discord_channel"] and not(bool(ctx.get("webhook_id"))):