From 36836ea803ad73a7f506b311b484fc28c9a346a7 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Thu, 30 Nov 2023 14:11:09 +0900 Subject: [PATCH] add bot_name to discord rpc field --- freqtrade/rpc/discord.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/rpc/discord.py b/freqtrade/rpc/discord.py index c0e9220b2..43190e395 100644 --- a/freqtrade/rpc/discord.py +++ b/freqtrade/rpc/discord.py @@ -15,6 +15,7 @@ class Discord(Webhook): self.rpc = rpc self.strategy = config.get('strategy', '') self.timeframe = config.get('timeframe', '') + self.bot_name = config.get('bot_name', '') self._url = config['discord']['webhook_url'] self._format = 'json' @@ -36,6 +37,7 @@ class Discord(Webhook): msg['strategy'] = self.strategy msg['timeframe'] = self.timeframe + msg['bot_name'] = self.bot_name color = 0x0000FF if msg['type'] in (RPCMessageType.EXIT, RPCMessageType.EXIT_FILL): profit_ratio = msg.get('profit_ratio')