From 123ee097b8c8f69e8cade9f618585065d3fc7948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 13 May 2018 15:00:24 +0200 Subject: Add logger username --- modules/role/templates/cryptoportfolio/api_logger.py.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/role/templates') diff --git a/modules/role/templates/cryptoportfolio/api_logger.py.erb b/modules/role/templates/cryptoportfolio/api_logger.py.erb index e5f0b30..3fb14a0 100644 --- a/modules/role/templates/cryptoportfolio/api_logger.py.erb +++ b/modules/role/templates/cryptoportfolio/api_logger.py.erb @@ -9,13 +9,14 @@ urllib3.disable_warnings() http = urllib3.PoolManager() webhook_url = "<%= @slack_logger %>" +webhook_username = "<%= @slack_logger_username %>" webhook_icon = "https://git.immae.eu/releases/logger.png" def send_to_discord(message): def send_chunk(chunk): data = { "avatar_url": webhook_icon, - "username": "Logger", + "username": webhook_username, "content": "```\n{}\n```".format(chunk), } encoded = json.dumps(data).encode('utf-8') -- cgit v1.2.3